Integrated: 8377200: Shenandoah: Convert shenandoahSharedVariables and related code to use Atomic<T>

Ben Taylor btaylor at openjdk.org
Wed Feb 11 09:46:51 UTC 2026


On Sat, 7 Feb 2026 00:22:15 GMT, William Kemper <wkemper at openjdk.org> wrote:

>> Modernizes ShenandoahSharedVariables code by replacing AtomicAccess methods with Atomic<T> types.
>> 
>> Tier1 test results on x86_64 linux are the same before and after this change when running with TEST_VM_OPTS=-XX:+UseShenandoahGC.
>
> src/hotspot/share/gc/shenandoah/shenandoahSharedVariables.hpp line 186:
> 
>> 184:   }
>> 185: 
>> 186:   volatile ShenandoahSharedValue* addr_of() {
> 
> I take it nobody is using this?

Correct. There are no uses of this method, and after this change it would break encapsulation on the `Atomic`, so it seemed best to remove it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29594#discussion_r2784137925


More information about the hotspot-gc-dev mailing list