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

Tests VarHandle methods which take effect of load store fence.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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