Tests weakCompareAndSet contend with strong compareAndSet.
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0 | 0 | FORBIDDEN | not both shall fail |
false, true, -2 | 30728 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 5352 | 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 | 264218 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 491642 | 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 | 18790 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 141900 | 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 | 397508 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 871152 | 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 | 288524 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 508066 | 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 | 315165 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 607835 | 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 | 649822 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 1082348 | 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 | 454275 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 912425 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, -2 | 0 | FORBIDDEN | not both shall succeed |