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

Tests atomicity of compareAndSet.

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 37256 ACCEPTABLE actor2 update successfully
true, false, -1 161914 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 44533 ACCEPTABLE actor2 update successfully
true, false, -1 168057 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 70802 ACCEPTABLE actor2 update successfully
true, false, -1 358758 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 0 FORBIDDEN not both shall fail
false, true, -2 127524 ACCEPTABLE actor2 update successfully
true, false, -1 219686 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 13000 ACCEPTABLE actor2 update successfully
true, false, -1 66250 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 216754 ACCEPTABLE actor2 update successfully
true, false, -1 327806 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 9410 ACCEPTABLE actor2 update successfully
true, false, -1 13380 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 134686 ACCEPTABLE actor2 update successfully
true, false, -1 240734 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, -2 0 FORBIDDEN not both shall succeed