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

Tests weakCompareAndSet contend with strong compareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 253149 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 411211 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 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 FORBIDDEN not both shall fail
false, true, 2 3557 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 8273 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 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 FORBIDDEN not both shall fail
false, true, 2 80488 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 247492 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 199804 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 772356 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 32295 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 40875 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 50608 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 1231792 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 282410 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 1026230 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 138051 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 1021949 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed