org.openjdk.jcstress.tests.atomicity.varHandles.fields.GetAndSetTest.GetAndSetByte

Tests atomicity of getAndSet.

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 861750 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 405490 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 902587 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 272453 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 590325 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 599965 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 788507 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 406313 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 39366 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 35974 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 796849 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 117641 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 438338 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 168362 ACCEPTABLE actor1 execute after actor2

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

Observed state Occurrence Expectation Interpretation
0, -1, 2 548860 ACCEPTABLE actor1 execute before actor2
0, 0, -1 0 FORBIDDEN This won't happen because getAndSet is atomic
0, 0, 2 0 FORBIDDEN This won't happen because getAndSet is atomic
2, 0, -1 204140 ACCEPTABLE actor1 execute after actor2