org.openjdk.jcstress.tests.atomicity.varHandles.fields.WeakCASContendStrongTest.WeakCompareAndSetPlainBoolean

Tests weakCompareAndSet contend with strong compareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 45993 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 91707 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 58616 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 18844 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 120244 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 861616 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 76619 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 552771 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 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, false 0 FORBIDDEN not both shall fail
false, true, true 69429 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 386721 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 558663 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 689927 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 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, false 0 FORBIDDEN not both shall fail
false, true, true 75040 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 670730 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 146363 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 824397 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed