RFR: 8374350: Convert hotspot gtests to use Atomic<T>

Kim Barrett kbarrett at openjdk.org
Sat Dec 27 05:28:32 UTC 2025


Please review this change to convert HotSpot gtests to use Atomic<T> rather
than directly using AtomicAccess.

test_atomicAccess.cpp is, of course, not subject to this conversion.

test_globalCounter.cpp is also not included in this conversion.  The other
conversions were straight forward.  This test is less so, and I decided I
needed to spend more time studying it, so have left it for followup work.

The conversion of each test is a separate commit, in case that makes it easier
to review.

Testing: mach5 tier1

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

Commit messages:
 - test_archiveWorkers
 - test_concurrentHashtable
 - test_waitBarrier
 - test_singleWriterSynchronizer
 - test_globalCounter_nested
 - test_bufferNodeAllocator
 - test_stressCommitUncommit
 - test_g1CardSet
 - test_g1BatchedGangTask

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

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


More information about the hotspot-dev mailing list