RFR: jsr166 jdk9 integration wave 9
aleksey.shipilev at gmail.com
Thu Aug 11 17:40:25 UTC 2016
On 08/11/2016 04:34 AM, Martin Buchholz wrote:
> Again, no spec changes, but larger than expected.
Why doesn't AtomicBoolean.getAndSet use VarHandle.getAndSet, which is
hopefully intrinsified completely?
I like the single-CAS version too, but it probably warrants some
explanation. Suggestion: "Since there are only two boolean values,
single CAS is enough, because there are only two possibilities: a) CAS
succeeds: the actual value needed change, and therefore it was a
complement of new value; b) CAS fails: the actual value was exactly the
Any benchmarks backing up this optimization?
More information about the core-libs-dev