Tests atomicity of getAndSet.
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 185806 | 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 |
2, 0, -1 | 90484 | ACCEPTABLE | actor1 execute after actor2 |
JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 821091 | 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 |
2, 0, -1 | 424599 | ACCEPTABLE | actor1 execute after actor2 |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 35093 | 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 |
2, 0, -1 | 21087 | ACCEPTABLE | actor1 execute after actor2 |
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 738967 | 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 |
2, 0, -1 | 110363 | ACCEPTABLE | actor1 execute after actor2 |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 566165 | 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 |
2, 0, -1 | 234475 | ACCEPTABLE | actor1 execute after actor2 |
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 893879 | 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 |
2, 0, -1 | 359731 | ACCEPTABLE | actor1 execute after actor2 |
JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 190628 | 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 |
2, 0, -1 | 105412 | ACCEPTABLE | actor1 execute after actor2 |
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
0, -1, 2 | 786622 | 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 |
2, 0, -1 | 37998 | ACCEPTABLE | actor1 execute after actor2 |