org.openjdk.jcstress.tests.fences.varHandles.LoadStoreFenceTest2.FullFenceByte

Tests VarHandle methods which take effect of load store fence.

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 458634 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 2038506 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 133066 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 338144 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 8156 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 116694 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 365391 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 2118389 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 458228 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 1986872 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 147922 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 96288 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 107046 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 296194 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0

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

Observed state Occurrence Expectation Interpretation
-1, -1 0 FORBIDDEN can't load var after store y in actor1.
-1, 0 150378 ACCEPTABLE store -1 to y in actor1 before load y in actor2
0, -1 0 FORBIDDEN this won't happen even if load var after store y because only if r1 = -1 var may be assigned to -1 and then r2 can be -1 from var.
0, 0 502662 ACCEPTABLE load y in actor2 before store -1 to y in actor1, all results are 0