Tests VarHandle methods which take effect of load store fence.
JVM options: [-Xint] Iterations: 5 Time: 200
Observed state | Occurrence | Expectation | Interpretation |
---|---|---|---|
-1, -1 | 0 | FORBIDDEN | can't load x after store var in actor1. |
-1, 0 | 2597 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 126783 | ACCEPTABLE | load var in actor2 before store -1 to var 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 x after store var in actor1. |
-1, 0 | 279953 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 1004557 | ACCEPTABLE | load var in actor2 before store -1 to var 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 x after store var in actor1. |
-1, 0 | 131314 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 566406 | ACCEPTABLE | load var in actor2 before store -1 to var 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 x after store var in actor1. |
-1, 0 | 511732 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 1799418 | ACCEPTABLE | load var in actor2 before store -1 to var 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 x after store var in actor1. |
-1, 0 | 359973 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 828557 | ACCEPTABLE | load var in actor2 before store -1 to var 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 x after store var in actor1. |
-1, 0 | 416073 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 1589697 | ACCEPTABLE | load var in actor2 before store -1 to var 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 x after store var in actor1. |
-1, 0 | 165744 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 340996 | ACCEPTABLE | load var in actor2 before store -1 to var 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 x after store var in actor1. |
-1, 0 | 108266 | ACCEPTABLE | store -1 to var in actor1 before load var in actor2 |
0, -1 | 0 | FORBIDDEN | this won't happen even if load x after store var because only if r1 = -1 x may be assigned to -1 and then r2 can be -1 from x. |
0, 0 | 660444 | ACCEPTABLE | load var in actor2 before store -1 to var in actor1, all results are 0 |