Tests weakCompareAndSet contend with strong compareAndSet.
JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, | 0 | FORBIDDEN | not both shall fail |
false, true, C | 399855 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 1523665 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, | 0 | FORBIDDEN | not both shall fail |
false, true, C | 90915 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 273735 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, | 0 | FORBIDDEN | not both shall fail |
false, true, C | 65920 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 4510 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, | 0 | FORBIDDEN | not both shall fail |
false, true, C | 162931 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 855899 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, | 0 | FORBIDDEN | not both shall fail |
false, true, C | 584588 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 838732 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, | 0 | FORBIDDEN | not both shall fail |
false, true, C | 221349 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 1266401 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, | 0 | FORBIDDEN | not both shall fail |
false, true, C | 120894 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 1360496 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 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 | FORBIDDEN | not both shall fail |
false, true, C | 32570 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, A | 260390 | ACCEPTABLE | actor2 execute after actor1 |
true, true, A | 0 | FORBIDDEN | not both shall succeed |
true, true, C | 0 | FORBIDDEN | not both shall succeed |