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

Move CompilerConfig::is_xxx() inline functions out of compilerDefinitions.hpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b12

      Many of the CompilerConfig::is_xxx() inline functions in compilerDefinitions.hpp depend on the following headers

      - compiler_globals.hpp
      - c1_globals.hpp
      - c2_globals.hpp
      - jvmci_globals.hpp

      However, only a few files actually use these functions. To improve C++ compilation time, we should move these inline functions to compilerDefinitions.inline.hpp

      https://github.com/openjdk/jdk/blob/07c9ba74fa3baebffcc15d3ee6ef941edf6be1a3/src/hotspot/share/compiler/compilerDefinitions.hpp#L153

      This reduces the inclusion of the above headers from 762 to 321.

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

              Created:
              Updated:
              Resolved: