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

is_compiled_by_jvmci hot in some profiles - improve nmethod compiler type detection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9
    • hotspot
    • b146
    • Verified

    Description

      In various microbenchmarks we've seen nmethod::is_compiled_by_jvmci be suspiciously hot (5-10% of total CPU cycles)

      Analyzing the situation it appears we're often directly interested in compiler type which compiled an nmethod, and only for debug printouts do we need to get to the actual compiler object, thus it appears fruitful to consider only storing the compiler type in the nmethod and inline the constant comparisons, and then resolve the compiler from type when needed for debugging (as there seems to be a 1:1 mapping from type to the compiler object).

      This could potentially reduce nmethod footprint, too.

      Attachments

        Issue Links

          Activity

            People

              neliasso Nils Eliasson (Inactive)
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: