org.openjdk.jcstress.tests.atomicity.varHandles.fields.WeakCASContendStrongTest.WeakCompareAndSetString

Tests weakCompareAndSet contend with strong compareAndSet.

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 572184 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 418966 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 44620 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 27060 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 614626 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 829284 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 800225 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 935875 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 324386 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 293984 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 645284 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 800446 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 155715 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 46555 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 439604 ACCEPTABLE actor2 execute before actor1 or win the contention with actor1
true, false, object 1193696 ACCEPTABLE actor2 execute after actor1
true, true, 2 0 FORBIDDEN not both shall succeed
true, true, object 0 FORBIDDEN not both shall succeed