RFR 8154737: Rename VarHandle.compareAndExchangeVolatile to VarHandle.compareAndExchange
Andrew Haley
aph at redhat.com
Mon Jul 11 12:30:48 UTC 2016
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.
More information about the core-libs-dev
mailing list