Tests weakCompareAndSet contend with strong compareAndSet.
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 430547 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 752743 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 50709 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 14851 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 315464 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 397686 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 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, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 69291 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 31699 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 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, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 121411 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 220199 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 346609 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 803381 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 524973 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 726707 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 0 | FORBIDDEN | not both shall succeed |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 379899 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 459601 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 0 | FORBIDDEN | not both shall succeed |