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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0 1392 ACCEPTABLE both may fail
false, true, 2 162791 ACCEPTABLE actor2 update successfully
true, false, -1 357827 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 ACCEPTABLE both may fail
false, true, 2 74565 ACCEPTABLE actor2 update successfully
true, false, -1 19905 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 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 5053 ACCEPTABLE both may fail
false, true, 2 445191 ACCEPTABLE actor2 update successfully
true, false, -1 844996 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 0 ACCEPTABLE both may fail
false, true, 2 579415 ACCEPTABLE actor2 update successfully
true, false, -1 1183525 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 647 ACCEPTABLE both may fail
false, true, 2 136492 ACCEPTABLE actor2 update successfully
true, false, -1 369211 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 453 ACCEPTABLE both may fail
false, true, 2 75751 ACCEPTABLE actor2 update successfully
true, false, -1 721746 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 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 5459 ACCEPTABLE both may fail
false, true, 2 694283 ACCEPTABLE actor2 update successfully
true, false, -1 1290878 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0 859 ACCEPTABLE both may fail
false, true, 2 205147 ACCEPTABLE actor2 update successfully
true, false, -1 428304 ACCEPTABLE actor1 update successfully
true, true, -1 0 FORBIDDEN not both shall succeed
true, true, 2 0 FORBIDDEN not both shall succeed