< prev index next >

test/compiler/rangechecks/TestRangeCheckSmearing.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

*** 26,51 **** * @bug 8066103 * @summary C2's range check smearing allows out of bound array accesses * @library /testlibrary /test/lib / * @modules java.base/jdk.internal.misc * java.management ! * @build TestRangeCheckSmearing * @run driver ClassFileInstaller sun.hotspot.WhiteBox * jdk.test.lib.Platform * @run main/othervm -ea -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ! * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestRangeCheckSmearing * */ ! import java.lang.annotation.*; ! import java.lang.reflect.*; ! import java.util.*; ! import sun.hotspot.WhiteBox; ! import sun.hotspot.code.NMethod; ! import jdk.test.lib.Platform; import compiler.whitebox.CompilerWhiteBoxTest; public class TestRangeCheckSmearing { private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox(); @Retention(RetentionPolicy.RUNTIME) @interface Args { int[] value(); } --- 26,57 ---- * @bug 8066103 * @summary C2's range check smearing allows out of bound array accesses * @library /testlibrary /test/lib / * @modules java.base/jdk.internal.misc * java.management ! * @build compiler.rangechecks.TestRangeCheckSmearing * @run driver ClassFileInstaller sun.hotspot.WhiteBox * jdk.test.lib.Platform * @run main/othervm -ea -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI ! * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement ! * compiler.rangechecks.TestRangeCheckSmearing * */ ! package compiler.rangechecks; ! import compiler.whitebox.CompilerWhiteBoxTest; + import jdk.test.lib.Platform; + import sun.hotspot.WhiteBox; + import java.lang.annotation.Retention; + import java.lang.annotation.RetentionPolicy; + import java.lang.reflect.Method; + import java.lang.reflect.Modifier; + import java.util.Arrays; + import java.util.HashMap; + public class TestRangeCheckSmearing { private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox(); @Retention(RetentionPolicy.RUNTIME) @interface Args { int[] value(); }
< prev index next >