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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 5079 ACCEPTABLE both may fail
false, true, C 19748 ACCEPTABLE actor2 update successfully
true, false, A 73703 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, 37785 ACCEPTABLE both may fail
false, true, C 521798 ACCEPTABLE actor2 update successfully
true, false, A 506457 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, 100134 ACCEPTABLE both may fail
false, true, C 278202 ACCEPTABLE actor2 update successfully
true, false, A 360984 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 256632 ACCEPTABLE actor2 update successfully
true, false, A 434188 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, 7868 ACCEPTABLE both may fail
false, true, C 126049 ACCEPTABLE actor2 update successfully
true, false, A 166223 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, 684 ACCEPTABLE both may fail
false, true, C 8118 ACCEPTABLE actor2 update successfully
true, false, A 15498 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 42738 ACCEPTABLE actor2 update successfully
true, false, A 29682 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, 219527 ACCEPTABLE both may fail
false, true, C 591113 ACCEPTABLE actor2 update successfully
true, false, A 703900 ACCEPTABLE actor1 update successfully
true, true, A 0 FORBIDDEN not both shall succeed
true, true, C 0 FORBIDDEN not both shall succeed