[jmm-dev] jdk9 APIs
Andrew Dinn
adinn at redhat.com
Thu Aug 20 13:59:39 UTC 2015
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"?
regards,
Andrew Dinn
-----------
More information about the jmm-dev
mailing list