Integrated: 8368989: Use NMethodMarkingScope and ThreadsClaimTokenScope in shenandoahSTWMark

Francesco Andreuzzi fandreuzzi at openjdk.org
Thu Oct 2 18:52:30 UTC 2025


On Wed, 1 Oct 2025 08:57:07 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:

> Replace `StrongRootsScope` with `ThreadsClaimTokenScope` in `shenandoahSTWMark` to be more precise with what is needed and why. 
> 
> - `ShenandoahSTWMark` uses `MarkingNMethodClosure`, so we also need `NMethodMarkingScope`.
> - `nworkers` is guaranteed to be > 0
> 
> Passes `tier1` and `tier2` (fastdebug).

This pull request has now been integrated.

Changeset: 1d55adee
Author:    Francesco Andreuzzi <fandreuzzi at openjdk.org>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1d55adee11fc2fdbf2e009e1308b763fd7217dad
Stats:     9 lines in 1 file changed: 5 ins; 2 del; 2 mod

8368989: Use NMethodMarkingScope and ThreadsClaimTokenScope in shenandoahSTWMark

Reviewed-by: shade, ayang

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

PR: https://git.openjdk.org/jdk/pull/27589


More information about the hotspot-gc-dev mailing list