RFR: 8374328: Convert simple AtomicAccess uses in gc/shared to use Atomic<T> [v2]

Thomas Schatzl tschatzl at openjdk.org
Wed Jan 7 07:48:36 UTC 2026


On Fri, 2 Jan 2026 10:11:58 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Please review these fairly simple changes to code in gc/shared to use
>> `Atomic<T>` instead of directly using `AtomicAccess`.
>> 
>> This change doesn't eliminate all remaining direct uses of `AtomicAccess` in
>> that directory; there are still a few uses that seem less simple, and maybe
>> some that should stay with direct `AtomicAccess`.
>> 
>> The changes are grouped into a series of commits, as a potential aid to reviewers.
>> 
>> Testing: mach5 tier1-5
>
> Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:
> 
>   update copyrights

All good but for copyright notices.

src/hotspot/share/gc/shared/barrierSetNMethod.cpp line 2:

> 1: /*
> 2:  * Copyright (c) 2018, 2026, Oracle and/or its affiliates. All rights reserved.

Should all be 2027 now...

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

Changes requested by tschatzl (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28987#pullrequestreview-3633694131
PR Review Comment: https://git.openjdk.org/jdk/pull/28987#discussion_r2667384039


More information about the hotspot-dev mailing list