org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.heap.big.WeakCASTest.WeakCompareAndSetReleaseLong

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0 12 ACCEPTABLE both may fail
false, true, -2 18417 ACCEPTABLE actor2 update successfully
true, false, -1 199121 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 149 ACCEPTABLE both may fail
false, true, -2 166740 ACCEPTABLE actor2 update successfully
true, false, -1 254991 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 219315 ACCEPTABLE actor2 update successfully
true, false, -1 1033105 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 144 ACCEPTABLE both may fail
false, true, -2 578806 ACCEPTABLE actor2 update successfully
true, false, -1 1112490 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] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0 73 ACCEPTABLE both may fail
false, true, -2 90487 ACCEPTABLE actor2 update successfully
true, false, -1 262900 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 146 ACCEPTABLE both may fail
false, true, -2 205699 ACCEPTABLE actor2 update successfully
true, false, -1 605355 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 449 ACCEPTABLE both may fail
false, true, -2 309230 ACCEPTABLE actor2 update successfully
true, false, -1 895081 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 22940 ACCEPTABLE actor2 update successfully
true, false, -1 18210 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, -2 0 FORBIDDEN not both shall succeed