org.openjdk.jcstress.tests.atomicity.varHandles.fields.CAETest.CompareAndExchangeReleaseChar

Tests atomicity of compareAndExchange.

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 445814 ACCEPTABLE actor1 update successfully
C, , C 506366 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 476749 ACCEPTABLE actor1 update successfully
C, , C 368271 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 1226470 ACCEPTABLE actor1 update successfully
C, , C 756110 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 1336376 ACCEPTABLE actor1 update successfully
C, , C 266574 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 729902 ACCEPTABLE actor1 update successfully
C, , C 511788 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 1170717 ACCEPTABLE actor1 update successfully
C, , C 560473 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 14401 ACCEPTABLE actor1 update successfully
C, , C 17049 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 641844 ACCEPTABLE actor1 update successfully
C, , C 419256 ACCEPTABLE actor2 update successfully