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 | 2208588 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 278182 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load var after store y 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 | 1616113 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 340837 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 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 |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 782533 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 153027 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 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 |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 532165 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 168295 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 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 |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 1941100 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 424140 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 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 |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 754446 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 462874 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 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 |
---|---|---|---|
.*, 0.0 | 0 | ACCEPTABLE_SPEC | Non-atomic access detected, allowed by spec, r2 only can be assigned to 0. |
0.0, 0.0 | 416312 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 218908 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load var after store y 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 | 33273 | ACCEPTABLE | load y in actor2 before store 1.39067116124321E-309 to y in actor1, all results are 0.0 |
0.0, 1.39067116124321E-309 | 0 | FORBIDDEN | this won't happen even if load var after store y because only if r1 = 1.39067116124321E-309 var may be assigned to 1.39067116124321E-309 and then r2 can be 1.39067116124321E-309 from var. |
1.39067116124321E-309, 0.0 | 1897 | ACCEPTABLE | store 1.39067116124321E-309 to y in actor1 before load y in actor2 |
1.39067116124321E-309, 1.39067116124321E-309 | 0 | FORBIDDEN | can't load var after store y in actor1. |