Tests atomicity of getAndAdd.
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-1, 0, -2 | 12964 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 16836 | 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 | 111715 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 266935 | 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 | 70099 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 200481 | 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 | 70991 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 225639 | 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 | 14089 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 106861 | 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 | 51250 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 258240 | 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 | 25046 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 148864 | 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 | 45466 | ACCEPTABLE | actor1 execute after actor2 |
0, -1, -2 | 29454 | ACCEPTABLE | actor1 execute before actor2 |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because getAndAdd is atomic |