test/compiler/8000805/Test8000805.java
Print this page
rev 4502 : 7115383: TEST_BUG: some jtreg tests fail because they explicitly specify -server option
Summary: Small changes to hotspot tests to remove "-server" and replace with ${TESTVMOPTS}
Reviewed-by: kvn
*** 24,34 ****
/**
* @test
* @bug 8000805
* @summary JMM issue: short loads are non-atomic
*
! * @run main/othervm -server -XX:-TieredCompilation -Xcomp -XX:+PrintCompilation -XX:CompileOnly=Test8000805.loadS2LmaskFF,Test8000805.loadS2Lmask16,Test8000805.loadS2Lmask13,Test8000805.loadUS_signExt,Test8000805.loadB2L_mask8 Test8000805
*/
public class Test8000805 {
static long loadS2LmaskFF (short[] sa) { return sa[0] & 0xFF; }
static long loadS2LmaskFF_1 (short[] sa) { return sa[0] & 0xFF; }
--- 24,34 ----
/**
* @test
* @bug 8000805
* @summary JMM issue: short loads are non-atomic
*
! * @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
*/
public class Test8000805 {
static long loadS2LmaskFF (short[] sa) { return sa[0] & 0xFF; }
static long loadS2LmaskFF_1 (short[] sa) { return sa[0] & 0xFF; }