org.openjdk.jcstress.tests.atomicity.varHandles.arrays.CAETest.CompareAndExchangeAcquireChar

Tests atomicity of compareAndExchange.

JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 1166085 ACCEPTABLE actor1 update successfully
C, , C 807105 ACCEPTABLE actor2 update successfully

JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 443285 ACCEPTABLE actor1 update successfully
C, , C 158295 ACCEPTABLE actor2 update successfully

JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 555123 ACCEPTABLE actor1 update successfully
C, , C 326227 ACCEPTABLE actor2 update successfully

JVM options: [-server] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 1154165 ACCEPTABLE actor1 update successfully
C, , C 382705 ACCEPTABLE actor2 update successfully

JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 995662 ACCEPTABLE actor1 update successfully
C, , C 255318 ACCEPTABLE actor2 update successfully

JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 732596 ACCEPTABLE actor1 update successfully
C, , C 194564 ACCEPTABLE actor2 update successfully

JVM options: [-client] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 290348 ACCEPTABLE actor1 update successfully
C, , C 230982 ACCEPTABLE actor2 update successfully

JVM options: [-Xint] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
, , 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , A 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, , C 0 FORBIDDEN This won't happen because compareAndExchange is atomic
, A, A 52199 ACCEPTABLE actor1 update successfully
C, , C 23021 ACCEPTABLE actor2 update successfully