[jmm-dev] jdk9 APIs
Doug Lea
dl at cs.oswego.edu
Thu Aug 20 14:16:02 UTC 2015
On 08/20/2015 09:59 AM, Andrew Dinn wrote:
> On 20/08/15 14:44, Doug Lea wrote:
> . . .
>> /**
>> * Atomically sets the value to the given updated value with the
>> * memory semantics of setRelease if the current value {@code ==}
>> * the expected value, as accessed with the memory samantics of
>> * getRelaxed.
> ^^^^^^^^^^
>> * @param expected the expected value
>> * @param val the new value
>> * @return the current value, which will be the same as {@code val} if
>> * successful.
>> */
>> T compareAndExchangeRelease(Object owner, T expected, T val);
>
> Should that be "with the memory samantics of getRelease"?
>
Yes, thanks!
-Doug
More information about the jmm-dev
mailing list