RFR: 8369038: Use NMethodMarkingScope and ThreadsClaimTokenScope in psParallelCompact
Francesco Andreuzzi
fandreuzzi at openjdk.org
Thu Oct 2 12:29:20 UTC 2025
Replace `StrongRootsScope` with `ThreadsClaimTokenScope` in `MarkFromRootsTask ` to be more precise with what is needed and why.
- `MarkFromRootsTask` uses `MarkingNMethodClosure` (in `PCAddThreadRootsMarkingTaskClosure`), so we also need `NMethodMarkingScope`.
- `active_workers ` is guaranteed to be `> 0`
Passes tier1 and tier2 (fastdebug).
-------------
Commit messages:
- replace
Changes: https://git.openjdk.org/jdk/pull/27607/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27607&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8369038
Stats: 6 lines in 1 file changed: 3 ins; 1 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/27607.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27607/head:pull/27607
PR: https://git.openjdk.org/jdk/pull/27607
More information about the hotspot-gc-dev
mailing list