[jmm-dev] jdk9 APIs

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Aug 12 08:41:54 UTC 2015

On 08/12/2015 11:35 AM, Andrew Haley wrote:
> On 12/08/15 09:33, Aleksey Shipilev wrote:
>> Or is it the other way around: weakCAS is relaxed by default, and
>> acq/rel weakCAS version are actually *stronger* than default weakCAS?
> That's how I read it.
> weakCompareAndSet        is   ldxr; cmp; stxr
> weakCompareAndSetAcquire is   ldaxr; cmp; stxr
> weakCompareAndSetRelease is   ldxr; cmp; stlxr

Okay, that makes sense.


More information about the jmm-dev mailing list