org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.direct.big.WeakCASTest.WeakCompareAndSetAcquireFloat

Tests atomicity of weakCompareAndSet.

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 43863 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 323847 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] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
false, false, 0.0 39 ACCEPTABLE both may fail
false, true, 2.0 30010 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 228781 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 25 ACCEPTABLE both may fail
false, true, 2.0 26633 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 254892 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 72 ACCEPTABLE both may fail
false, true, 2.0 75390 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 276678 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 64 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 15756 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 36 ACCEPTABLE both may fail
false, true, 2.0 37268 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 158846 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 8 ACCEPTABLE both may fail
false, true, 2.0 23008 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 215314 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 14 ACCEPTABLE both may fail
false, true, 2.0 30148 ACCEPTABLE actor2 update successfully
true, false, 2.3509528E-38 190338 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