Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8257563

Remove excessive include of klass.inline.hpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • hotspot
    • b28

      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%.

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: