hotspot/test/compiler/rangechecks/TestRangeCheckSmearing.java
changeset 34185 ee71c590a456
parent 33730 30e064828045
parent 34155 8d9e0cbf93a2
child 36851 03e2f4d0a421
equal deleted inserted replaced
33813:4f376e851453 34185:ee71c590a456
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8066103
    26  * @bug 8066103
    27  * @summary C2's range check smearing allows out of bound array accesses
    27  * @summary C2's range check smearing allows out of bound array accesses
    28  * @library /testlibrary /test/lib /compiler/whitebox
    28  * @library /testlibrary /test/lib /compiler/whitebox /
    29  * @modules java.base/sun.misc
    29  * @modules java.base/sun.misc
    30  *          java.management
    30  *          java.management
    31  * @build TestRangeCheckSmearing
    31  * @build TestRangeCheckSmearing
    32  * @run main ClassFileInstaller sun.hotspot.WhiteBox
    32  * @run main ClassFileInstaller sun.hotspot.WhiteBox
    33  * @run main ClassFileInstaller jdk.test.lib.Platform
    33  * @run main ClassFileInstaller jdk.test.lib.Platform
    40 import java.lang.reflect.*;
    40 import java.lang.reflect.*;
    41 import java.util.*;
    41 import java.util.*;
    42 import sun.hotspot.WhiteBox;
    42 import sun.hotspot.WhiteBox;
    43 import sun.hotspot.code.NMethod;
    43 import sun.hotspot.code.NMethod;
    44 import jdk.test.lib.Platform;
    44 import jdk.test.lib.Platform;
       
    45 import compiler.whitebox.CompilerWhiteBoxTest;
    45 
    46 
    46 public class TestRangeCheckSmearing {
    47 public class TestRangeCheckSmearing {
    47     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
    48     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
    48 
    49 
    49     @Retention(RetentionPolicy.RUNTIME)
    50     @Retention(RetentionPolicy.RUNTIME)