org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.direct.big.CASTest.CompareAndSetInt

Tests atomicity of compareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 FORBIDDEN not both shall fail
false, true, -2 101532 ACCEPTABLE actor2 update successfully
true, false, -1 206878 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 FORBIDDEN not both shall fail
false, true, -2 13549 ACCEPTABLE actor2 update successfully
true, false, -1 13341 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 FORBIDDEN not both shall fail
false, true, -2 23987 ACCEPTABLE actor2 update successfully
true, false, -1 189443 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 0 FORBIDDEN not both shall fail
false, true, -2 73472 ACCEPTABLE actor2 update successfully
true, false, -1 150148 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 0 FORBIDDEN not both shall fail
false, true, -2 128589 ACCEPTABLE actor2 update successfully
true, false, -1 258981 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 0 FORBIDDEN not both shall fail
false, true, -2 95987 ACCEPTABLE actor2 update successfully
true, false, -1 267883 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 0 FORBIDDEN not both shall fail
false, true, -2 4075 ACCEPTABLE actor2 update successfully
true, false, -1 23605 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 0 FORBIDDEN not both shall fail
false, true, -2 68788 ACCEPTABLE actor2 update successfully
true, false, -1 192872 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, -2 0 FORBIDDEN not both shall succeed