klass.inline.hpp is unnecessarily included by two popular header files:
https://github.com/openjdk/jdk/blob/fe5cccc1ec76a5c29b1f55af311823f84483395b/src/hotspot/share/oops/oop.inline.hpp#L34
https://github.com/openjdk/jdk/blob/fe5cccc1ec76a5c29b1f55af311823f84483395b/src/hotspot/share/gc/shared/modRefBarrierSet.inline.hpp#L31
These two lines recursively pull in many header files. Removing them reduced the total number of header inclusion for building HotSpot from 260096 to 254773, or about 2%.
https://github.com/openjdk/jdk/blob/fe5cccc1ec76a5c29b1f55af311823f84483395b/src/hotspot/share/oops/oop.inline.hpp#L34
https://github.com/openjdk/jdk/blob/fe5cccc1ec76a5c29b1f55af311823f84483395b/src/hotspot/share/gc/shared/modRefBarrierSet.inline.hpp#L31
These two lines recursively pull in many header files. Removing them reduced the total number of header inclusion for building HotSpot from 260096 to 254773, or about 2%.
- relates to
- 
                    JDK-8257673 Build fails without shenandoahgc after JDK-8257563 -           
- Resolved
 
-         
- 
                    JDK-8257743 Minimal build on AArch64 failed with --disable-precompiled-headers -           
- Resolved
 
-         
 
        