org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.direct.little.WeakCASTest.WeakCompareAndSetReleaseDouble

Tests atomicity of weakCompareAndSet.

JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 0 ACCEPTABLE both may fail
false, true, 2.0 23543 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 323207 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 5 ACCEPTABLE both may fail
false, true, 2.0 25212 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 81363 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 2 ACCEPTABLE both may fail
false, true, 2.0 11770 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 57648 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 18 ACCEPTABLE both may fail
false, true, 2.0 43608 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 410374 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 27 ACCEPTABLE both may fail
false, true, 2.0 76367 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 405666 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

JVM options: [-Xint] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 0 ACCEPTABLE both may fail
false, true, 2.0 41 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 23079 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

JVM options: [-client] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 19 ACCEPTABLE both may fail
false, true, 2.0 80572 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 333689 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

JVM options: [-server] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 2 ACCEPTABLE both may fail
false, true, 2.0 18270 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 136898 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed