Tests VarHandle methods which take effect of load store fence.
[1]JVM options: [-server] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 1345344 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 496076 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |
JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 1772142 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 497338 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |
JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 1124989 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 248731 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |
JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 2590465 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 449515 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |
JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 135332 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 50188 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |
JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 1359402 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 533678 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 62495 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 5425 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |
JVM options: [-client] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 958752 | ACCEPTABLE | load var in actor2 before store 1.39067116124321E-309 to var in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = 1.39067116124321E-309 x may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from x. |
1.39067116124321E-309, 0.0 | 239138 | ACCEPTABLE | store 1.39067116124321E-309 to var in actor1 before load var in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load x after store var in actor1. |