RFR: 8272723: Don't use Access API to access primitive fields [v2]

Erik Österlund eosterlund at openjdk.java.net
Fri Aug 20 07:38:31 UTC 2021


On Fri, 20 Aug 2021 06:41:23 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> Roman Kennke has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove remaining primitive Access API uses
>
> src/hotspot/share/prims/unsafe.cpp line 233:
> 
>> 231:   T get_volatile() {
>> 232:     GuardUnsafeAccess guard(_thread);
>> 233:     volatile T ret = Atomic::load_acquire(addr());
> 
> Is MO_SEQ_CST to load_acquire mapping correct?

No it is not.

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

PR: https://git.openjdk.java.net/jdk/pull/5187


More information about the hotspot-dev mailing list