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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, null 0 ACCEPTABLE both may fail
false, true, 2 29321 ACCEPTABLE actor2 update successfully
true, false, object 20859 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] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, null 393 ACCEPTABLE both may fail
false, true, 2 2271 ACCEPTABLE actor2 update successfully
true, false, object 8476 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 8329 ACCEPTABLE both may fail
false, true, 2 150909 ACCEPTABLE actor2 update successfully
true, false, object 571732 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 3901 ACCEPTABLE both may fail
false, true, 2 214827 ACCEPTABLE actor2 update successfully
true, false, object 418652 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 9404 ACCEPTABLE both may fail
false, true, 2 124586 ACCEPTABLE actor2 update successfully
true, false, object 572100 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 710394 ACCEPTABLE actor2 update successfully
true, false, object 1257166 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 1316 ACCEPTABLE both may fail
false, true, 2 51162 ACCEPTABLE actor2 update successfully
true, false, object 103392 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 10649 ACCEPTABLE both may fail
false, true, 2 178766 ACCEPTABLE actor2 update successfully
true, false, object 714875 ACCEPTABLE actor1 update successfully
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed