[concurrency-interest] AtomicReference.updateAndGet() mandatory updating

Doug Lea dl at cs.oswego.edu
Thu May 25 13:27:02 EDT 2017

On 05/25/2017 01:15 PM, Gil Tene wrote:

>> (http://download.java.net/java/jdk9/docs/api/java/lang/invoke/VarHandle.html)

> While on this subject, was the relative "weakening" of compareAndSet
> (and other) memory semantics between Java 8 and java 9 discussed
> elsewhere?

The was no intention to weaken CAS specs. But in an attempt to clarify
distinctions across new variants (compareAndExchangeRelease
etc), the fact that the volatile-write property is unconditional
here got lost. This also needs to be fixed.


More information about the Concurrency-interest mailing list