org.openjdk.jcstress.tests.atomicity.varHandles.byteArray.big.WeakCASTest.WeakCompareAndSetAcquireInt

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0 44189 ACCEPTABLE both may fail
false, true, -2 177099 ACCEPTABLE actor2 update successfully
true, false, -1 475152 ACCEPTABLE actor1 update successfully
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 ACCEPTABLE both may fail
false, true, -2 17007 ACCEPTABLE actor2 update successfully
true, false, -1 26383 ACCEPTABLE actor1 update successfully
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 171639 ACCEPTABLE both may fail
false, true, -2 267662 ACCEPTABLE actor2 update successfully
true, false, -1 1308439 ACCEPTABLE actor1 update successfully
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 ACCEPTABLE both may fail
false, true, -2 349457 ACCEPTABLE actor2 update successfully
true, false, -1 1237193 ACCEPTABLE actor1 update successfully
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 19316 ACCEPTABLE both may fail
false, true, -2 388707 ACCEPTABLE actor2 update successfully
true, false, -1 1227697 ACCEPTABLE actor1 update successfully
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 22457 ACCEPTABLE both may fail
false, true, -2 125082 ACCEPTABLE actor2 update successfully
true, false, -1 375311 ACCEPTABLE actor1 update successfully
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 20699 ACCEPTABLE both may fail
false, true, -2 151823 ACCEPTABLE actor2 update successfully
true, false, -1 385268 ACCEPTABLE actor1 update successfully
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 17372 ACCEPTABLE both may fail
false, true, -2 245126 ACCEPTABLE actor2 update successfully
true, false, -1 1124672 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, -2 0 FORBIDDEN not both shall succeed