Integrated: 8375643: G1: Convert G1RegionMarkStatsCache to use Atomic<T>

Thomas Schatzl tschatzl at openjdk.org
Tue Jan 20 13:25:06 UTC 2026


On Mon, 19 Jan 2026 16:56:09 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   please review this change to make `G1RegionMarkStatsCache` use `Atomic<T>`.
> 
> The only unusual part is that I added two getters to that class to avoid the repeated `.load_relaxed()` typing.
> 
> Testing: gha
> 
> Thanks,
>   Thomas

This pull request has now been integrated.

Changeset: 03704012
Author:    Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/037040129e82958bd023e0b24d962627e8653710
Stats:     29 lines in 4 files changed: 8 ins; 2 del; 19 mod

8375643: G1: Convert G1RegionMarkStatsCache to use Atomic<T>

Reviewed-by: shade, kbarrett

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

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


More information about the hotspot-gc-dev mailing list