org.openjdk.jcstress.tests.atomicity.varHandles.fields.WeakCASTest.WeakCompareAndSetPlainChar

Tests atomicity of weakCompareAndSet.

JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 15074 ACCEPTABLE both may fail
false, true, C 103502 ACCEPTABLE actor2 update successfully
true, false, A 101064 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, 123106 ACCEPTABLE both may fail
false, true, C 1593111 ACCEPTABLE actor2 update successfully
true, false, A 1481313 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 ACCEPTABLE both may fail
false, true, C 443775 ACCEPTABLE actor2 update successfully
true, false, A 730365 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, 90393 ACCEPTABLE both may fail
false, true, C 584443 ACCEPTABLE actor2 update successfully
true, false, A 696654 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, 42380 ACCEPTABLE both may fail
false, true, C 460115 ACCEPTABLE actor2 update successfully
true, false, A 345975 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, 129767 ACCEPTABLE both may fail
false, true, C 554711 ACCEPTABLE actor2 update successfully
true, false, A 770822 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 ACCEPTABLE both may fail
false, true, C 21081 ACCEPTABLE actor2 update successfully
true, false, A 10779 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, -XX:-TieredCompilation] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 63968 ACCEPTABLE both may fail
false, true, C 448110 ACCEPTABLE actor2 update successfully
true, false, A 611592 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed