On 22/06/16 10:34, Paul Sandoz wrote: > This patch renames VarHandle.compareAndExchangeVolatile to > VarHandle.compareAndExchange so the naming scheme is consistent with > compareAndSet, and is also a little shorter.
I guess this means that if we want a relaxed compareAndExchange we'll have to use the weak variant. I suppose that's reasonable enough, if only to try to reduce the number of methods. (Mind you, that also could have been done quite nicely by using a parameter, which is what C++ does. Oh well.) Andrew.