test/serviceability/dcmd/compiler/CompilerQueueTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/serviceability/dcmd/compiler

test/serviceability/dcmd/compiler/CompilerQueueTest.java

Print this page
rev 8995 : 8046155: JEP165: Compiler Control
Summary:
Reviewed-by:


  25  * @test CompilerQueueTest
  26  * @bug 8054889
  27  * @library /testlibrary
  28  * @modules java.base/sun.misc
  29  *          java.compiler
  30  *          java.management
  31  *          jdk.jvmstat/sun.jvmstat.monitor
  32  * @ignore 8069160
  33  * @build jdk.test.lib.*
  34  * @build jdk.test.lib.dcmd.*
  35  * @run testng CompilerQueueTest
  36  * @run testng/othervm -XX:-TieredCompilation CompilerQueueTest
  37  * @run testng/othervm -Xint CompilerQueueTest
  38  * @summary Test of diagnostic command Compiler.queue
  39  */
  40 
  41 import jdk.test.lib.OutputAnalyzer;
  42 import jdk.test.lib.dcmd.CommandExecutor;
  43 import jdk.test.lib.dcmd.JMXExecutor;
  44 import org.testng.annotations.Test;

  45 
  46 import java.util.Iterator;
  47 
  48 public class CompilerQueueTest {
  49 
  50     /**
  51      * This test calls Jcmd (diagnostic command tool) Compiler.queue and
  52      * then parses the output, making sure that the output look ok.
  53      *
  54      *
  55      * Output example:
  56      *
  57      * Contents of C1 compile queue
  58      * ----------------------------
  59      * 73       3       java.lang.AbstractStringBuilder::append (50 bytes)
  60      * 74       1       java.util.TreeMap::size (5 bytes)
  61      * 75       3       java.lang.StringBuilder::append (8 bytes)
  62      * 83       3       java.util.TreeMap$ValueIterator::next (8 bytes)
  63      * 84       1       javax.management.MBeanFeatureInfo::getName (5 bytes)
  64      * ----------------------------




  25  * @test CompilerQueueTest
  26  * @bug 8054889
  27  * @library /testlibrary
  28  * @modules java.base/sun.misc
  29  *          java.compiler
  30  *          java.management
  31  *          jdk.jvmstat/sun.jvmstat.monitor
  32  * @ignore 8069160
  33  * @build jdk.test.lib.*
  34  * @build jdk.test.lib.dcmd.*
  35  * @run testng CompilerQueueTest
  36  * @run testng/othervm -XX:-TieredCompilation CompilerQueueTest
  37  * @run testng/othervm -Xint CompilerQueueTest
  38  * @summary Test of diagnostic command Compiler.queue
  39  */
  40 
  41 import jdk.test.lib.OutputAnalyzer;
  42 import jdk.test.lib.dcmd.CommandExecutor;
  43 import jdk.test.lib.dcmd.JMXExecutor;
  44 import org.testng.annotations.Test;
  45 import org.testng.Assert;
  46 
  47 import java.util.Iterator;
  48 
  49 public class CompilerQueueTest {
  50 
  51     /**
  52      * This test calls Jcmd (diagnostic command tool) Compiler.queue and
  53      * then parses the output, making sure that the output look ok.
  54      *
  55      *
  56      * Output example:
  57      *
  58      * Contents of C1 compile queue
  59      * ----------------------------
  60      * 73       3       java.lang.AbstractStringBuilder::append (50 bytes)
  61      * 74       1       java.util.TreeMap::size (5 bytes)
  62      * 75       3       java.lang.StringBuilder::append (8 bytes)
  63      * 83       3       java.util.TreeMap$ValueIterator::next (8 bytes)
  64      * 84       1       javax.management.MBeanFeatureInfo::getName (5 bytes)
  65      * ----------------------------


test/serviceability/dcmd/compiler/CompilerQueueTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File