Tests atomicity of compareAndExchange.
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 411631 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 569839 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 40463 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 76667 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 555647 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 935233 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 367372 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 372878 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 358209 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 942531 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 258386 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 704094 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 21885 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 40655 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-2, 0, -2 | 160016 | ACCEPTABLE | actor2 update successfully |
0, -1, -1 | 511694 | ACCEPTABLE | actor1 update successfully |
0, 0, -1 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, -2 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |
0, 0, 0 | 0 | FORBIDDEN | This won't happen because compareAndExchange is atomic |