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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, null 1475 ACCEPTABLE both may fail
false, true, 2 137073 ACCEPTABLE actor2 update successfully
true, false, object 443402 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, null 0 ACCEPTABLE both may fail
false, true, 2 246426 ACCEPTABLE actor2 update successfully
true, false, object 593094 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 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, null 1 ACCEPTABLE both may fail
false, true, 2 11135 ACCEPTABLE actor2 update successfully
true, false, object 27794 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, null 327 ACCEPTABLE both may fail
false, true, 2 128262 ACCEPTABLE actor2 update successfully
true, false, object 514601 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 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, null 1980 ACCEPTABLE both may fail
false, true, 2 359129 ACCEPTABLE actor2 update successfully
true, false, object 726651 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, null 0 ACCEPTABLE both may fail
false, true, 2 46777 ACCEPTABLE actor2 update successfully
true, false, object 10843 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, null 925 ACCEPTABLE both may fail
false, true, 2 101849 ACCEPTABLE actor2 update successfully
true, false, object 1549736 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, null 1156 ACCEPTABLE both may fail
false, true, 2 665494 ACCEPTABLE actor2 update successfully
true, false, object 1345590 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed