Tests weakCompareAndSet contend with strong compareAndSet.
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 | 574300 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 1299850 | 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 | 1000891 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 1487199 | 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 | 517137 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 658593 | 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 | 446663 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 593987 | 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 | 330658 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 363222 | 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] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
false, false, null | 0 | FORBIDDEN | not both shall fail |
false, true, 2 | 380100 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 496000 | 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 | 525826 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 711014 | 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 | 43717 | ACCEPTABLE | actor2 execute before actor1 or win the contention with actor1 |
true, false, object | 9243 | ACCEPTABLE | actor2 execute after actor1 |
true, true, 2 | 0 | FORBIDDEN | not both shall succeed |
true, true, object | 0 | FORBIDDEN | not both shall succeed |