Tests VarHandle methods which take effect of load store fence.
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 | 519934 | 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 | 1243076 | 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 | 11801 | 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 | 214439 | 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 | 91780 | 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 | 260050 | 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 | 674389 | 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 | 754601 | ACCEPTABLE | load y in actor2 before store -1 to y in actor1, all results are 0 |
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 | 282824 | 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 | 907206 | 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 | 729767 | 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 | 3902703 | 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 | 150070 | 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 | 627560 | 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 | 92454 | 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 | 428986 | ACCEPTABLE | load y in actor2 before store -1 to y in actor1, all results are 0 |