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

Roman Kennke rkennke at openjdk.java.net
Fri Aug 20 08:39:27 UTC 2021


On Fri, 20 Aug 2021 07:35:40 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

>> No it is not.
>
>> Is MO_SEQ_CST to load_acquire mapping correct?
> 
> We should probably retain RawAccess<MO_SEQ_CST> here to get the right semantics.

I'll restore the volatile accesses to use RawAccess<MO_SEQ_CST> for now, but maybe it would be better in the long run to have simpler Atomic::load<MO_SEQ_CST> accessors?

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

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


More information about the hotspot-dev mailing list