Tests weakCompareAndSet contend with strong compareAndSet.
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 | 203991 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 853199 | 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 | 89664 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 494856 | 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 | 125525 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 1893115 | 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 | 191766 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 1168884 | 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 | 140355 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 970445 | 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 | 900576 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 947134 | 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 | 200418 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 1385632 | 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 | 68258 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, -1 | 4822 | ACCEPTABLE | actor2 execute after actor1 |
true, true, -1 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |