jdk.internal.misc.Unsafe.weakCompareAndSwapObject

Andrew Haley aph at redhat.com
Wed Feb 24 17:29:23 UTC 2016


What are the semantics of Unsafe.weakCompareAndSwapObject?
These methods seem to be undocumented.

Here's my guess:

compareAndSwapObject : acquire, release
weakCompareAndSwapObject: nothing
weakCompareAndSwapObjectAcquire: acquire
weakCompareAndSwapObjectRelease: release

Andrew.


More information about the hotspot-dev mailing list