Semantics of VarHandle CAS methods
Andrew Haley
aph at redhat.com
Thu Jun 30 07:37:17 UTC 2016
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? We have all of the
variants we need.
Andrew.
More information about the core-libs-dev
mailing list