< prev index next >

test/serviceability/dcmd/compiler/CompilerQueueTest.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test CompilerQueueTest
  26  * @bug 8054889
  27  * @library /testlibrary /test/lib /
  28  * @modules java.base/jdk.internal.misc
  29  *          java.compiler
  30  *          java.management
  31  *          jdk.jvmstat/sun.jvmstat.monitor
  32  * @summary Test of diagnostic command Compiler.queue
  33  * @build jdk.test.lib.*
  34  *        jdk.test.lib.dcmd.*
  35  *        sun.hotspot.WhiteBox
  36  *        compiler.testlibrary.CompilerUtils
  37  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  38  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  39  * @run testng/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -Xmixed -XX:+WhiteBoxAPI CompilerQueueTest
  40  * @run testng/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -Xmixed -XX:-TieredCompilation -XX:+WhiteBoxAPI CompilerQueueTest
  41  * @run testng/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -Xint -XX:+WhiteBoxAPI CompilerQueueTest
  42  */
  43 
  44 import compiler.testlibrary.CompilerUtils;
  45 import jdk.test.lib.OutputAnalyzer;
  46 import jdk.test.lib.dcmd.CommandExecutor;
  47 import jdk.test.lib.dcmd.JMXExecutor;
  48 import org.testng.annotations.Test;
  49 import org.testng.Assert;
  50 import sun.hotspot.WhiteBox;
  51 
  52 import java.lang.reflect.Executable;
  53 import java.lang.reflect.Method;
  54 import java.util.Iterator;
  55 
  56 public class CompilerQueueTest {
  57 
  58     /**
  59      * This test calls Jcmd (diagnostic command tool) Compiler.queue and
  60      * then parses the output, making sure that the output look ok.
  61      *
  62      *
  63      * Output example:
  64      *
  65      * Current compiles:




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test CompilerQueueTest
  26  * @bug 8054889
  27  * @library /test/lib /
  28  * @modules java.base/jdk.internal.misc
  29  *          java.compiler
  30  *          java.management
  31  *          jdk.jvmstat/sun.jvmstat.monitor
  32  * @summary Test of diagnostic command Compiler.queue
  33  * @build sun.hotspot.WhiteBox



  34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  35  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  36  * @run testng/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -Xmixed -XX:+WhiteBoxAPI CompilerQueueTest
  37  * @run testng/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -Xmixed -XX:-TieredCompilation -XX:+WhiteBoxAPI CompilerQueueTest
  38  * @run testng/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -Xint -XX:+WhiteBoxAPI CompilerQueueTest
  39  */
  40 
  41 import compiler.testlibrary.CompilerUtils;
  42 import jdk.test.lib.process.OutputAnalyzer;
  43 import jdk.test.lib.dcmd.CommandExecutor;
  44 import jdk.test.lib.dcmd.JMXExecutor;
  45 import org.testng.annotations.Test;
  46 import org.testng.Assert;
  47 import sun.hotspot.WhiteBox;
  48 
  49 import java.lang.reflect.Executable;
  50 import java.lang.reflect.Method;
  51 import java.util.Iterator;
  52 
  53 public class CompilerQueueTest {
  54 
  55     /**
  56      * This test calls Jcmd (diagnostic command tool) Compiler.queue and
  57      * then parses the output, making sure that the output look ok.
  58      *
  59      *
  60      * Output example:
  61      *
  62      * Current compiles:


< prev index next >