org.openjdk.jcstress.tests.atomicity.varHandles.byteArray.little.WeakCASContendStrongTest.WeakCompareAndSetAcquireDouble

Tests weakCompareAndSet contend with strong compareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 0 FORBIDDEN not both shall fail
false, true, 2.0 171590 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 527140 ACCEPTABLE actor2 execute after actor1
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 FORBIDDEN not both shall fail
false, true, 2.0 26 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 38524 ACCEPTABLE actor2 execute after actor1
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 0 FORBIDDEN not both shall fail
false, true, 2.0 149454 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 430206 ACCEPTABLE actor2 execute after actor1
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 0 FORBIDDEN not both shall fail
false, true, 2.0 285019 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 642631 ACCEPTABLE actor2 execute after actor1
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 FORBIDDEN not both shall fail
false, true, 2.0 167320 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 834880 ACCEPTABLE actor2 execute after actor1
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 0 FORBIDDEN not both shall fail
false, true, 2.0 351027 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 1025113 ACCEPTABLE actor2 execute after actor1
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 0 FORBIDDEN not both shall fail
false, true, 2.0 429570 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 873520 ACCEPTABLE actor2 execute after actor1
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 0 FORBIDDEN not both shall fail
false, true, 2.0 103627 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 282243 ACCEPTABLE actor2 execute after actor1
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed