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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 22590 ACCEPTABLE both may fail
false, true, 2.0 192109 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 518201 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 9051 ACCEPTABLE both may fail
false, true, 2.0 95694 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 246455 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 101 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 14659 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 12572 ACCEPTABLE both may fail
false, true, 2.0 150154 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 369294 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 20255 ACCEPTABLE both may fail
false, true, 2.0 391621 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 935024 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 40415 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 892695 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 7965 ACCEPTABLE both may fail
false, true, 2.0 91048 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 403997 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 39632 ACCEPTABLE both may fail
false, true, 2.0 265031 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 628807 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