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

Tests atomicity of compareAndExchange.

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 20077 ACCEPTABLE actor1 update successfully
C, , C 8503 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 60150 ACCEPTABLE actor1 update successfully
C, , C 24450 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 909556 ACCEPTABLE actor1 update successfully
C, , C 189604 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 1216125 ACCEPTABLE actor1 update successfully
C, , C 114235 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 2238564 ACCEPTABLE actor1 update successfully
C, , C 689016 ACCEPTABLE actor2 update successfully

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 1334979 ACCEPTABLE actor1 update successfully
C, , C 915831 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 169683 ACCEPTABLE actor1 update successfully
C, , C 111217 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 112018 ACCEPTABLE actor1 update successfully
C, , C 43032 ACCEPTABLE actor2 update successfully