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 | 186782 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 722008 | 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 | 140825 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 905105 | 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 | 392085 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 714965 | 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 | 52216 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 4584 | 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 | 78920 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 827800 | 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 | 90446 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 310214 | 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 | 87821 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 253179 | 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 | 117881 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 838229 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |