RFR: 8369611: Remove safepoint synchronization from ParallelScavengeHeap and SerialHeap

Aleksey Shipilev shade at openjdk.org
Mon Oct 13 07:36:04 UTC 2025


On Fri, 10 Oct 2025 22:38:14 GMT, Xiaolong Peng <xpeng at openjdk.org> wrote:

> In the discussion of [JDK-8369392](https://bugs.openjdk.org/browse/JDK-8369392), @kimbarrett pointed out that StringDedup thread is now derived from JavaThread, but ParallelScavengeHeap and SerialHeap still have conditional STS synchronization at safepoint, which is not needed, as a result of removing the conditional STS synchronization, we could remove the remove safepoint synchronization from ParallelScavengeHeap and SerialHeap.
> 
> Test:
>   - [x] tier1

Makes sense, thanks.

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27755#pullrequestreview-3330292497


More information about the hotspot-gc-dev mailing list