RFR: 8375983: G1: Convert G1ConcurrentRefineStats to use Atomic<T>

Thomas Schatzl tschatzl at openjdk.org
Wed Jan 21 13:31:42 UTC 2026


Hi all,

  please review this change that converts `G1ConcurrentRefineStats` to use `Atomic<T>`.

The only notable thing is that there has been need to expand the assignment in `reset()` since the assignment operator for `Atomic<T>` is not defined, and I did not see it worth adding one.

Testing: gha

Thanks,
  Thomas

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

Commit messages:
 - 8375983

Changes: https://git.openjdk.org/jdk/pull/29347/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29347&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8375983
  Stats: 50 lines in 2 files changed: 9 ins; 0 del; 41 mod
  Patch: https://git.openjdk.org/jdk/pull/29347.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29347/head:pull/29347

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


More information about the hotspot-gc-dev mailing list