org.openjdk.jcstress.tests.atomicity.varHandles.byteArray.big.GetAndSetTest.GetAndSetDouble

Tests atomicity of getAndSet.

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 247368 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 43612 ACCEPTABLE actor1 execute after actor2

JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 460449 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 39051 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 1187311 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 177119 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 22436 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 104 ACCEPTABLE actor1 execute after actor2

JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 1164999 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 113671 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 1154444 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 29016 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 506756 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 64814 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 1.39067116124321E-309 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 1.39067116124321E-309, 2.0 968162 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 1.39067116124321E-309 169678 ACCEPTABLE actor1 execute after actor2