RFR (XS): CR 8004330: Add missing Unsafe entry points for addAndGet() family

Doug Lea dl at cs.oswego.edu
Wed Jan 9 13:02:13 UTC 2013


On 01/09/13 07:42, Aleksey Shipilev wrote:

> Sorry, this confuses me even more. This [1] seems to be the version

Scavenging through 9-year-old change-logs is probably
not the best path to resolving confusion :-) There were several
stabs (and back then a highly non-transparent process!) at
conforming to and helping to frame JDK5 VM expectations.

The main point to keep in mind is that the fallback wrapper
(unsafe.cpp  Unsafe_CompareAndSwapLong) does what you
expect (uses the enclosing lock), unless you are in an
uncommon (and possibly non-existent) situation where
you  need/expect something else.

-Doug






More information about the core-libs-dev mailing list