org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.direct.little.WeakCASContendStrongTest.WeakCompareAndSetReleaseInt

Tests weakCompareAndSet contend with strong compareAndSet.

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 156373 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 138437 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 163013 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 224397 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 5373 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 96327 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 100393 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 178527 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 132974 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 190966 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 63784 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 254986 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 121757 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 256293 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 25771 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, -1 10369 ACCEPTABLE actor2 execute after actor1
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, -2 0 FORBIDDEN not both shall succeed