Tests weakCompareAndSet contend with strong compareAndSet.
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 133955 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 980795 | 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: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, false | 0 | FORBIDDEN | not both shall fail |
false, true, true | 635686 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 1107964 | 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 | 110660 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 1110190 | 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 | 55275 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 706935 | 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 | 55324 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 6386 | 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 | 204446 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 923984 | 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 | 150236 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 687494 | 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 | 265223 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, true | 810527 | ACCEPTABLE | actor2 execute after actor1 |
true, true, true | 0 | FORBIDDEN | not both shall succeed |
true, true, true | 0 | FORBIDDEN | not both shall succeed |