RFR 8181104 Fix specs for updateAndGet and related methods

Paul Sandoz paul.sandoz at oracle.com
Tue Jun 13 01:49:21 UTC 2017



This patch fixes two spec issues:

1) j.u.concurrent.atomic.* classes now defer to VarHandles and package doc was removed. This inadvertently removed a clause about the memory order effects of the read-modify-write methods. So the relevant methods were updated.

2) The VarHandles CAS specification slightly changed the semantics of memory ordering effects when the CAS fails. A general paragraph was added specifying the effects of plain, opaque, acquire/release, and volatile operations.


More information about the core-libs-dev mailing list