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

Tests atomicity of weakCompareAndSet.

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 8530 ACCEPTABLE both may fail
false, true, 2.0 41702 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 324638 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 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 2040 ACCEPTABLE both may fail
false, true, 2.0 146102 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 327188 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 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 49 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 50471 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 23665 ACCEPTABLE both may fail
false, true, 2.0 205272 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 538483 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 4253 ACCEPTABLE both may fail
false, true, 2.0 83484 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 1008453 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed

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

Observed state Occurrence Expectation Interpretation
false, false, 0.0 23642 ACCEPTABLE both may fail
false, true, 2.0 62021 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 1000027 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 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 112916 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 1618374 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 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 6701 ACCEPTABLE both may fail
false, true, 2.0 54359 ACCEPTABLE actor2 update successfully
true, false, 1.39067116124321E-309 483750 ACCEPTABLE actor1 update successfully
true, true, 1.39067116124321E-309 0 FORBIDDEN not both shall succeed
true, true, 2.0 0 FORBIDDEN not both shall succeed