Semantics of VarHandle CAS methods

Paul Sandoz paul.sandoz at oracle.com
Thu Jun 30 08:00:00 UTC 2016


> On 30 Jun 2016, at 09:37, Andrew Haley <aph at redhat.com> wrote:
> 
> On 30/06/16 02:20, Martin Buchholz wrote:
>> VarHandle.compareAndSet is strong in two ways - non-spurious and
>> sequentially consistent.
>> 
>> VarHandle.weakCompareAndSet is weak in both these ways.
>> (That seems like a mistake to me.
>> The fact that j.u.c. Atomic classes are a precedent for this seems
>> unfortunate.)
> 
> Is your disagreement purely about the name?

I was also wondering if that was the source of disgreement.

Paul.

>  We have all of the variants we need.
> 


More information about the core-libs-dev mailing list