-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
`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 inJDK-8367417.
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
- relates to
-
JDK-8367417 Serial: Use NMethodToOopClosure during Young GC
-
- Resolved
-
- links to
-
Review(master) openjdk/jdk/27336