hotspot/test/compiler/tiered/NonTieredLevelsTest.java
changeset 39438 206a712f8f16
parent 38152 80e5da81fb2c
child 39696 80c9894e18f9
equal deleted inserted replaced
39437:0d59db48adfc 39438:206a712f8f16
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 import java.util.function.IntPredicate;
       
    25 import compiler.whitebox.CompilerWhiteBoxTest;
       
    26 
       
    27 /**
    24 /**
    28  * @test NonTieredLevelsTest
    25  * @test NonTieredLevelsTest
    29  * @library /testlibrary /test/lib /compiler/whitebox /
    26  * @library /testlibrary /test/lib /
    30  * @modules java.base/jdk.internal.misc
    27  * @modules java.base/jdk.internal.misc
    31  * @modules java.management
    28  * @modules java.management
    32  * @build NonTieredLevelsTest
    29  * @build NonTieredLevelsTest
    33  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    30  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    34  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
    31  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
    37  *                   -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCaseHelper::*
    34  *                   -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCaseHelper::*
    38  *                   NonTieredLevelsTest
    35  *                   NonTieredLevelsTest
    39  * @summary Verify that only one level can be used
    36  * @summary Verify that only one level can be used
    40  * @author igor.ignatyev@oracle.com
    37  * @author igor.ignatyev@oracle.com
    41  */
    38  */
       
    39 
       
    40 import java.util.function.IntPredicate;
       
    41 import compiler.whitebox.CompilerWhiteBoxTest;
       
    42 
    42 public class NonTieredLevelsTest extends CompLevelsTest {
    43 public class NonTieredLevelsTest extends CompLevelsTest {
    43     private static final int AVAILABLE_COMP_LEVEL;
    44     private static final int AVAILABLE_COMP_LEVEL;
    44     private static final IntPredicate IS_AVAILABLE_COMPLEVEL;
    45     private static final IntPredicate IS_AVAILABLE_COMPLEVEL;
    45     static {
    46     static {
    46         String vmName = System.getProperty("java.vm.name");
    47         String vmName = System.getProperty("java.vm.name");