Tests weakCompareAndSet contend with strong compareAndSet.
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 188070 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 538660 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 238507 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 275023 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 114836 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 200914 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 73322 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 18548 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 80472 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 581158 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 185202 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 523768 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 152399 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 822221 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 293194 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 515326 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |