RFR: 8368599: ShenandoahConcurrentMark could use ThreadsClaimTokenScope

Albert Mingkun Yang ayang at openjdk.org
Thu Sep 25 10:42:01 UTC 2025


On Wed, 24 Sep 2025 22:37:44 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:

> Replace `StrongRootsScope` with `ThreadsClaimTokenScope` in `ShenandoahConcurrentMark::finish_mark_work` to be more precise with what is actually needed and why. Similar to #27385.
> 
> Test: tier1, and tier[1,2,3]_gc_shenandoah

I wonder if it can be inlined to `ShenandoahFinalMarkingTask` as a field, but up to you.

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

Marked as reviewed by ayang (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27477#pullrequestreview-3267008172


More information about the hotspot-gc-dev mailing list