As described by Doug Lea here: http://mail.openjdk.java.net/pipermail/jmm-dev/2015-August/000185.html Basically, it amounts to add two new flavors for each CAS, plus the weak CAS hierarchy: boolean compareAndSet(Object owner, T cmp, T val); boolean compareAndSetAcquire(Object owner, T cmp, T val); boolean compareAndSetRelease(Object owner, T cmp, T val); boolean weakCompareAndSet(Object owner, T cmp, T val); boolean weakCompareAndSetAcquire(Object owner, T cmp, T val); boolean weakCompareAndSetRelease(Object owner, T cmp, T val);
|