jdk.internal.misc.Unsafe.weakCompareAndSwapObject

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Feb 24 17:44:47 UTC 2016


On 02/24/2016 08:29 PM, Andrew Haley wrote:
> compareAndSwapObject : acquire, release
> weakCompareAndSwapObject: nothing
> weakCompareAndSwapObjectAcquire: acquire
> weakCompareAndSwapObjectRelease: release

Yes, should be like that. In retrospect, we should have documented them
straight in Unsafe.java, not in VarHandles, for which these methods are
destined.

-Aleksey

P.S. Well, you have said that to myself half a year ago:
 http://mail.openjdk.java.net/pipermail/jmm-dev/2015-August/000192.html




More information about the hotspot-dev mailing list