-
Type:
Sub-task
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
b117
VarHandle has a weakCompareAndSet method with "plain" semantics.
A compareAndSet cannot reliably be replaced with a weak variant on platforms that support LL/SC. See here for more details:
http://mail.openjdk.java.net/pipermail/jmm-dev/2016-April/000239.html
A variant with "volatile" semantics should be added e.g. weakCompareAndSetVolatile.
JDK change:
http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8154755-weak-cas-volatile/webrev/
A compareAndSet cannot reliably be replaced with a weak variant on platforms that support LL/SC. See here for more details:
http://mail.openjdk.java.net/pipermail/jmm-dev/2016-April/000239.html
A variant with "volatile" semantics should be added e.g. weakCompareAndSetVolatile.
JDK change:
http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8154755-weak-cas-volatile/webrev/
- relates to
-
JDK-8155965 Unsafe.weakCompareAndSetVolatile entry points and intrinsics
-
- Resolved
-