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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, false 23636 ACCEPTABLE both may fail
false, true, true 340836 ACCEPTABLE actor2 update successfully
true, false, true 1408598 ACCEPTABLE actor1 update successfully
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 ACCEPTABLE both may fail
false, true, true 250809 ACCEPTABLE actor2 update successfully
true, false, true 429721 ACCEPTABLE actor1 update successfully
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 7020 ACCEPTABLE both may fail
false, true, true 260228 ACCEPTABLE actor2 update successfully
true, false, true 1787582 ACCEPTABLE actor1 update successfully
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 12125 ACCEPTABLE both may fail
false, true, true 158812 ACCEPTABLE actor2 update successfully
true, false, true 745263 ACCEPTABLE actor1 update successfully
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 8698 ACCEPTABLE both may fail
false, true, true 121305 ACCEPTABLE actor2 update successfully
true, false, true 364387 ACCEPTABLE actor1 update successfully
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 2102 ACCEPTABLE both may fail
false, true, true 251892 ACCEPTABLE actor2 update successfully
true, false, true 305806 ACCEPTABLE actor1 update successfully
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 ACCEPTABLE both may fail
false, true, true 41236 ACCEPTABLE actor2 update successfully
true, false, true 25194 ACCEPTABLE actor1 update successfully
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 10693 ACCEPTABLE both may fail
false, true, true 140807 ACCEPTABLE actor2 update successfully
true, false, true 556880 ACCEPTABLE actor1 update successfully
true, true, true 0 FORBIDDEN not both shall succeed
true, true, true 0 FORBIDDEN not both shall succeed