org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.direct.little.GetAndSetTest.GetAndSetFloat

Tests atomicity of getAndSet.

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 23001 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 49 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, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 419653 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 53517 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 85951 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 21119 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 299156 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 44274 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 541218 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 67862 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, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 299606 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 26774 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 386700 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 48750 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0.0, 0.0, 2.0 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 0.0, 2.3509528E-38 0 FORBIDDEN This won't happen because getAndSet is atomic
0.0, 2.3509528E-38, 2.0 110747 ACCEPTABLE actor1 execute before actor2
2.0, 0.0, 2.3509528E-38 15023 ACCEPTABLE actor1 execute after actor2