24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 8000805 |
26 * @bug 8000805 |
27 * @summary JMM issue: short loads are non-atomic |
27 * @summary JMM issue: short loads are non-atomic |
28 * |
28 * |
29 * @run main/othervm -server -XX:-TieredCompilation -Xcomp -XX:+PrintCompilation -XX:CompileOnly=Test8000805.loadS2LmaskFF,Test8000805.loadS2Lmask16,Test8000805.loadS2Lmask13,Test8000805.loadUS_signExt,Test8000805.loadB2L_mask8 Test8000805 |
29 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -Xcomp -XX:+PrintCompilation -XX:CompileOnly=Test8000805.loadS2LmaskFF,Test8000805.loadS2Lmask16,Test8000805.loadS2Lmask13,Test8000805.loadUS_signExt,Test8000805.loadB2L_mask8 Test8000805 |
30 */ |
30 */ |
31 |
31 |
32 public class Test8000805 { |
32 public class Test8000805 { |
33 static long loadS2LmaskFF (short[] sa) { return sa[0] & 0xFF; } |
33 static long loadS2LmaskFF (short[] sa) { return sa[0] & 0xFF; } |
34 static long loadS2LmaskFF_1 (short[] sa) { return sa[0] & 0xFF; } |
34 static long loadS2LmaskFF_1 (short[] sa) { return sa[0] & 0xFF; } |