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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 4943 ACCEPTABLE both may fail
false, true, 2.0 303751 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 1574306 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 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.0 104289 ACCEPTABLE both may fail
false, true, 2.0 157938 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 1592743 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 1057 ACCEPTABLE both may fail
false, true, 2.0 45046 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 426467 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 0 ACCEPTABLE both may fail
false, true, 2.0 74 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 27956 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 5612 ACCEPTABLE both may fail
false, true, 2.0 37788 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 79470 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 48651 ACCEPTABLE both may fail
false, true, 2.0 171113 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 781876 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 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.0 9406 ACCEPTABLE both may fail
false, true, 2.0 32642 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 366932 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 0 ACCEPTABLE both may fail
false, true, 2.0 81181 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 553959 ACCEPTABLE actor1 update successfully
true, true, 2.0 0 FORBIDDEN not both shall succeed
true, true, 2.3509528E-38 0 FORBIDDEN not both shall succeed