org.openjdk.jcstress.tests.atomicity.varHandles.arrays.WeakCASContendStrongTest.WeakCompareAndSetAcquireDouble

Tests weakCompareAndSet contend with strong compareAndSet.

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 74 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 31036 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 410821 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 1377589 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 204554 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 611316 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 357347 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 1283533 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 1858511 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 1324759 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] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 0 FORBIDDEN not both shall fail
false, true, 2.0 296051 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 882539 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 162393 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 583927 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 559060 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, 1.39067116124321E-309 1794640 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