RFR: 8369038: Use NMethodMarkingScope and ThreadsClaimTokenScope in psParallelCompact
duke
duke at openjdk.org
Fri Oct 3 10:45:46 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).
@fandreuz
Your change (at version 1ab02decd10923287786ec8ce018db4b45ab0f3e) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27607#issuecomment-3365222423
More information about the hotspot-gc-dev
mailing list