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

Tests weakCompareAndSet contend with strong compareAndSet.

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 161867 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 247783 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 93237 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 61853 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 353565 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 814175 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 513598 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 633212 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 702600 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 1203540 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 340218 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 336052 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 60973 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 11207 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 394381 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 481549 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, -2 0 FORBIDDEN not both shall succeed