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

Generalize scavengeable nmethod root handling

    XMLWordPrintable

    Details

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

      Description

      There seems to be different ways of handling scavengeable nmethod roots in hotspot.

      The primary way of dealing with them is to use the CodeCache scavenge root nmethod list that maintains a list of all nmethods with scavengeable nmethods.

      However, G1 does not use this list as it has its own mechanism of keeping track of nmethods with scavengeable roots pointing into the heap.

      To handle this, the current CodeCache code is full of special cases for G1. In multiple cases we check if (UseG1GC) and then return.

      We seemingly need a better way of communicating to the GC what scavengeable nmethod roots there are.

        Attachments

          Activity

            People

            Assignee:
            eosterlund Erik Ă–sterlund
            Reporter:
            eosterlund Erik Ă–sterlund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: