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

Parallel: Use NMethodToOopClosure during Young GC

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      `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.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: