RFR: 8369038: Use NMethodMarkingScope and ThreadsClaimTokenScope in psParallelCompact

Albert Mingkun Yang ayang at openjdk.org
Thu Oct 2 12:32:45 UTC 2025


On Thu, 2 Oct 2025 12:23:32 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:

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

Marked as reviewed by ayang (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/27607#pullrequestreview-3294368442


More information about the hotspot-gc-dev mailing list