test/compiler/8000805/Test8000805.java

changeset 4684
7369298bec7e
parent 4202
67f4c477c9ab
child 6198
55fb97c4c58d
equal deleted inserted replaced
4636:be1fbee20765 4684:7369298bec7e
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; }

mercurial