Parallel: Use NMethodToOopClosure during Young GC

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • b17

      `ScavengeRootsTask` use `MarkingNMethodClosure` to process oops inside nmethods during young-gc. However, since young-gc using scavenging, instead of marking, there is no need for `MarkingNMethodClosure` -- `NMethodToOopClosure` is enough.

      After switching to `NMethodToOopClosure`, the part of undoing the effect of nmethod-claiming inside `MarkingNMethodClosure` becomes unneeded, and `StrongRootsScope` becomes essential threads-claim-token only.

      This is similar what's is done for Serial in JDK-8367417.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: