org.openjdk.jcstress.tests.atomicity.varHandles.fields.CASTest.CompareAndSetChar

Tests atomicity of compareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0 FORBIDDEN not both shall fail
false, true, C 411335 ACCEPTABLE actor2 update successfully
true, false, A 707385 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed

JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0 FORBIDDEN not both shall fail
false, true, C 635384 ACCEPTABLE actor2 update successfully
true, false, A 1026876 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed

JVM options: [-client] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0 FORBIDDEN not both shall fail
false, true, C 62977 ACCEPTABLE actor2 update successfully
true, false, A 545503 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed

JVM options: [-Xint] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0 FORBIDDEN not both shall fail
false, true, C 45802 ACCEPTABLE actor2 update successfully
true, false, A 19538 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 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 FORBIDDEN not both shall fail
false, true, C 321915 ACCEPTABLE actor2 update successfully
true, false, A 557465 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 FORBIDDEN not both shall fail
false, true, C 236556 ACCEPTABLE actor2 update successfully
true, false, A 856954 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed

JVM options: [-server] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0 FORBIDDEN not both shall fail
false, true, C 236539 ACCEPTABLE actor2 update successfully
true, false, A 876351 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 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 FORBIDDEN not both shall fail
false, true, C 316874 ACCEPTABLE actor2 update successfully
true, false, A 1163496 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed