[jmm-dev] bitwise RMW operators, specifically testAndSetBit/BTS
Andrew Haley
aph at redhat.com
Tue Jul 19 07:59:24 UTC 2016
On 18/07/16 20:31, Doug Lea wrote:
>> On 07/18/2016 02:27 PM, Andrew Haley wrote:
>>> On 18/07/16 12:43, Paul Sandoz wrote:
>>>> - for the read or write method, plain is the default.
>>>>
>>>> - for read-modify-write methods volatile is the default volatile
>>>> - rename weakCompareAndSet to weakCompareAndSetPlain
>>>
>>> Why "plain"? Is this the same as C++ "relaxed"?
>
> In this case, yes. But Java-plain is not necessarily always the
> same as C++ relaxed, so we've been cautious with namings.
Mmmm, but it's baffling for me, and I've been involved for a long
time. We have "Opaque" and now "Plain". What is the difference
between them? I haven't seen these terms anywhere else. Is this new
terminology?
Andrew.
More information about the jmm-dev
mailing list