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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 48 ACCEPTABLE both may fail
false, true, 2.0 57474 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 368478 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: [-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 93192 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 1045628 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 58 ACCEPTABLE both may fail
false, true, 2.0 51338 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 277644 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 298 ACCEPTABLE both may fail
false, true, 2.0 114523 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 706819 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 14 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 36256 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 195 ACCEPTABLE both may fail
false, true, 2.0 183890 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 711625 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 135 ACCEPTABLE both may fail
false, true, 2.0 107836 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 409709 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 253 ACCEPTABLE both may fail
false, true, 2.0 164762 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 623795 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