org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.heap.big.GetAndSetTest.GetAndSetLong

Tests atomicity of getAndSet.

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

Observed state Occurrence Expectation Interpretation
-2, 0, -1 56204 ACCEPTABLE actor1 execute after actor2
0, -1, -2 185226 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 134932 ACCEPTABLE actor1 execute after actor2
0, -1, -2 417338 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 64645 ACCEPTABLE actor1 execute after actor2
0, -1, -2 311035 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 42893 ACCEPTABLE actor1 execute after actor2
0, -1, -2 520117 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 174211 ACCEPTABLE actor1 execute after actor2
0, -1, -2 686079 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 100621 ACCEPTABLE actor1 execute after actor2
0, -1, -2 465469 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 81271 ACCEPTABLE actor1 execute after actor2
0, -1, -2 150629 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: [-Xint] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
-2, 0, -1 7009 ACCEPTABLE actor1 execute after actor2
0, -1, -2 4131 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