hotspot/test/compiler/rangechecks/TestRangeCheckSmearing.java
changeset 34155 8d9e0cbf93a2
parent 30604 b8d532cb6420
child 34185 ee71c590a456
equal deleted inserted replaced
34154:a0b06a3239de 34155:8d9e0cbf93a2
    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 /
    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)