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

Tests atomicity of getAndSet.

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 6183 ACCEPTABLE actor1 execute after actor2
0, -1, -2 5307 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 51666 ACCEPTABLE actor1 execute after actor2
0, -1, -2 159064 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 13552 ACCEPTABLE actor1 execute after actor2
0, -1, -2 150938 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 35565 ACCEPTABLE actor1 execute after actor2
0, -1, -2 71875 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 27084 ACCEPTABLE actor1 execute after actor2
0, -1, -2 127836 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 39215 ACCEPTABLE actor1 execute after actor2
0, -1, -2 117855 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 35303 ACCEPTABLE actor1 execute after actor2
0, -1, -2 99287 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 20081 ACCEPTABLE actor1 execute after actor2
0, -1, -2 168489 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, -2 0 FORBIDDEN This won't happen because getAndSet is atomic