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

Remove excessive include of memTracker.hpp

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b14

      Description

      memTracker.hpp is included by 846 out of 971 .o files in the HotSpot build:

      $ cd build/linux-x64
      $ find hotspot -name \*.o | wc -l
      971
      $ find hotspot -name \*.d | grep -v LIBJVM.d | xargs cat | wc -l
      259927
      $ find hotspot -name \*.d | grep -v LIBJVM.d | xargs grep -l memTracker.hpp | wc -l
      846

      After fixing the excessive includes, the number has reduced significantly:
      $ find hotspot -name \*.d | grep -v LIBJVM.d | xargs cat | wc -l
      252033
      $ find hotspot -name \*.d | grep -v LIBJVM.d | xargs grep -l memTracker.hpp | wc -l
      94

      The total number of included header files has reduced for about 3% (259927 / 252033 = 1.0313).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: