Tests weakCompareAndSet contend with strong compareAndSet.
JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0.0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 127017 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 74053 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0.0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 60625 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 270485 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0.0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 25 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 23295 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0.0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 23447 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 278453 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0.0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 62233 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 352217 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0.0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 99143 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 281467 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, 0.0 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 28379 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 114191 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 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 | 0 | FORBIDDEN | not both shall fail |
false, true, 2.0 | 16439 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, 2.3509528E-38 | 104111 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2.0 | 0 | FORBIDDEN | not both shall succeed |
true, true, 2.3509528E-38 | 0 | FORBIDDEN | not both shall succeed |