Tests weakCompareAndSet contend with strong compareAndSet.
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 | 53414 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 145456 | 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 | 126231 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 274729 | 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 | 185791 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 341479 | 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] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, -2 | 171372 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 337858 | 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 | 34502 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 48508 | 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 | 62899 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 382771 | 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 | 17254 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 9316 | 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 | 44857 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 137443 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, -2 | 0 | FORBIDDEN | not both shall succeed |