hotspot/test/compiler/startup/NumCompilerThreadsCheck.java
changeset 40631 ed82623d7831
parent 40059 c2304140ed64
equal deleted inserted replaced
40629:514bf0744294 40631:ed82623d7831
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8034775
    26  * @bug 8034775
    27  * @summary Ensures correct minimal number of compiler threads (provided by -XX:CICompilerCount=)
    27  * @summary Ensures correct minimal number of compiler threads (provided by -XX:CICompilerCount=)
    28  * @library /testlibrary
    28  * @library /test/lib
    29  * @modules java.base/jdk.internal.misc
    29  * @modules java.base/jdk.internal.misc
    30  *          java.management
    30  *          java.management
    31  *
    31  *
    32  * @run driver compiler.startup.NumCompilerThreadsCheck
    32  * @run driver compiler.startup.NumCompilerThreadsCheck
    33  */
    33  */
    34 
    34 
    35 package compiler.startup;
    35 package compiler.startup;
    36 
    36 
    37 import jdk.test.lib.OutputAnalyzer;
    37 import jdk.test.lib.process.OutputAnalyzer;
    38 import jdk.test.lib.Platform;
    38 import jdk.test.lib.Platform;
    39 import jdk.test.lib.ProcessTools;
    39 import jdk.test.lib.process.ProcessTools;
    40 
    40 
    41 public class NumCompilerThreadsCheck {
    41 public class NumCompilerThreadsCheck {
    42 
    42 
    43   public static void main(String[] args) throws Exception {
    43   public static void main(String[] args) throws Exception {
    44     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:CICompilerCount=-1");
    44     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:CICompilerCount=-1");