JDK-8042195 : Introduce umbrella header orderAccess.inline.hpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-04-30
  • Updated: 2015-01-21
  • Resolved: 2014-05-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u40Fixed 9 b14Fixed
Description
This change introduces an umbrella header for orderAccess_<os>_<cpu>.inline.hpp 
files: runtime/orderAccess.inline.hpp. This follows the scheme applied to 
atomic.inline.hpp.

Further this change adds includes of orderAccess.inline.hpp in all .cpp
and .inline.hpp files where a method of OrderAccess declared 'inline' is
called.

Finally it moves methods calling inline methods of OrderAccess from 
g1CollectedHeap.hpp and thread.hpp to the corresponding .inline.hpp
files and adds the necessary includes in files using the moved
functions.

Still a lot of calls to inline methods of OrderAccess in .hpp 
files arn't preceded by an according include.  But for these
files an appropriate .inline.hpp file is missing:

src/cpu/ppc/vm/javaFrameAnchor_ppc.hpp
src/cpu/sparc/vm/javaFrameAnchor_sparc.hpp
src/share/vm/classfile/classLoader.hpp
src/share/vm/gc_implementation/concurrentMarkSweep/freeChunk.hpp
src/share/vm/memory/cardTableModRefBS.hpp
src/share/vm/oops/constantPool.hpp
src/share/vm/oops/cpCache.hpp
src/share/vm/oops/instanceKlass.hpp
src/share/vm/oops/method.hpp
src/share/vm/oops/methodData.hpp
src/share/vm/oops/typeArrayOop.hpp
src/share/vm/runtime/interfaceSupport.hpp
src/share/vm/utilities/array.hpp
src/share/vm/utilities/taskqueue.hpp