Tests weakCompareAndSet contend with strong compareAndSet.
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 476058 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 655422 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 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, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 33235 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 44485 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 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, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 47629 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 107761 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 100009 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 331501 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 132527 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 1321803 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 49706 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 6224 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 143311 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 1363179 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 76673 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 1297007 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 0 | FORBIDDEN | not both shall succeed |