org.openjdk.jcstress.tests.atomicity.varHandles.byteBuffer.direct.little.GetAndAddTest.GetAndAddLong

Tests atomicity of getAndAdd.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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