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

ZGC: Move nmethod oop properties from ZNMethodTableEntry to ZNMethodData

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b10

      Description

      The ZNMethodTableEntry contains two cached values, regarding the properties of an nmethod. The first is whether the nmethod has "immediate oops" in the code. The second property is used to indicate if the nmethod has "non immediate oop", which probably is a bad name, but it tells if there are oop-derived immediates that need to be fixed when Objects have been moved.

      I propose that we move these properties to the ZNMethodData objects that are attached to the nmethods via the gc specific gc_data. This allows for a cleaner separation of the proper table code in ZNMethodTable and the class ZGC class unloading code.

        Attachments

          Activity

            People

            Assignee:
            stefank Stefan Karlsson
            Reporter:
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: