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

Tests weakCompareAndSet contend with strong compareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 39043 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 17047 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] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, false 0 FORBIDDEN not both shall fail
false, true, true 146236 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 1013764 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 185766 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 1250044 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 190655 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 336185 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 334581 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 646359 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 138221 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 1069259 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 193828 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 1341972 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 303365 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, true 396655 ACCEPTABLE actor2 execute after actor1
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed