test/hotspot/jtreg/runtime/logging/MonitorInflationTest.java
changeset 53588 a5f46c4690f8
parent 53557 4cfe0e5a3b79
equal deleted inserted replaced
53587:739eaf4ac4ad 53588:a5f46c4690f8
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8133885
    26  * @bug 8133885
    27  * @summary monitorinflation=debug should have logging from each of the statements in the code
    27  * @summary monitorinflation=trace should have logging from each of the statements in the code
    28  * @library /test/lib
    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  * @run driver MonitorInflationTest
    31  * @run driver MonitorInflationTest
    32  */
    32  */
    48         output.shouldNotContain("[monitorinflation]");
    48         output.shouldNotContain("[monitorinflation]");
    49         output.shouldHaveExitValue(0);
    49         output.shouldHaveExitValue(0);
    50     }
    50     }
    51 
    51 
    52     public static void main(String[] args) throws Exception {
    52     public static void main(String[] args) throws Exception {
    53         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:monitorinflation=debug",
    53         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:monitorinflation=trace",
    54                                                                   InnerClass.class.getName());
    54                                                                   InnerClass.class.getName());
    55         analyzeOutputOn(pb);
    55         analyzeOutputOn(pb);
    56 
    56 
    57         pb = ProcessTools.createJavaProcessBuilder("-XX:+TraceMonitorInflation",
    57         pb = ProcessTools.createJavaProcessBuilder("-XX:+TraceMonitorInflation",
    58                                                    InnerClass.class.getName());
    58                                                    InnerClass.class.getName());