Integrated: 8369178: G1: Use NMethodMarkingScope and ThreadsClaimTokenScope in G1RootProcessor
Francesco Andreuzzi
fandreuzzi at openjdk.org
Wed Oct 8 14:24:04 UTC 2025
On Mon, 6 Oct 2025 12:20:42 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:
> Replace `StrongRootsScope` with `ThreadsClaimTokenScope` and `MarkingNMethodClosure` in `G1RootProcessor ` to be more precise with what is needed and why.
>
> - `MarkingNMethodClosure` is used in `G1FullGCMarkTask`, 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: 927aa3f8
Author: Francesco Andreuzzi <fandreuzzi at openjdk.org>
Committer: Thomas Schatzl <tschatzl at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/927aa3f8da34fb71b692661bebb89d20bfa85648
Stats: 53 lines in 8 files changed: 7 ins; 39 del; 7 mod
8369178: G1: Use NMethodMarkingScope and ThreadsClaimTokenScope in G1RootProcessor
Reviewed-by: ayang, tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/27644
More information about the hotspot-dev
mailing list