Integrated: 8369038: Parallel: Use NMethodMarkingScope and ThreadsClaimTokenScope in psParallelCompact
Francesco Andreuzzi
fandreuzzi at openjdk.org
Mon Oct 6 08:17:57 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).
This pull request has now been integrated.
Changeset: baf8bc57
Author: Francesco Andreuzzi <fandreuzzi at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/baf8bc5701c43425e3345f82d4318b134b26d7c9
Stats: 6 lines in 1 file changed: 3 ins; 1 del; 2 mod
8369038: Parallel: Use NMethodMarkingScope and ThreadsClaimTokenScope in psParallelCompact
Reviewed-by: ayang, shade
-------------
PR: https://git.openjdk.org/jdk/pull/27607
More information about the hotspot-gc-dev
mailing list