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

Tests weakCompareAndSet contend with strong compareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 189449 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 1112451 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 50089 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 461091 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: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, 2 580093 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 957297 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 51247 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 1198503 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 43547 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 9713 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 140013 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 770937 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 141386 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 667164 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 90537 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 769393 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed