1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 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. |
49 output.shouldNotContain("[monitorinflation]"); |
49 output.shouldNotContain("[monitorinflation]"); |
50 output.shouldHaveExitValue(0); |
50 output.shouldHaveExitValue(0); |
51 } |
51 } |
52 |
52 |
53 public static void main(String[] args) throws Exception { |
53 public static void main(String[] args) throws Exception { |
54 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( |
54 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:monitorinflation=debug", |
55 "-Xlog:monitorinflation=debug", InnerClass.class.getName()); |
55 InnerClass.class.getName()); |
56 analyzeOutputOn(pb); |
56 analyzeOutputOn(pb); |
57 |
57 |
58 pb = ProcessTools.createJavaProcessBuilder( |
58 pb = ProcessTools.createJavaProcessBuilder("-XX:+TraceMonitorInflation", |
59 "-XX:+TraceMonitorInflation", InnerClass.class.getName()); |
59 InnerClass.class.getName()); |
60 analyzeOutputOn(pb); |
60 analyzeOutputOn(pb); |
61 |
61 |
62 pb = ProcessTools.createJavaProcessBuilder( |
62 pb = ProcessTools.createJavaProcessBuilder("-Xlog:monitorinflation=off", |
63 "-Xlog:monitorinflation=off", InnerClass.class.getName()); |
63 InnerClass.class.getName()); |
64 analyzeOutputOff(pb); |
64 analyzeOutputOff(pb); |
65 |
65 |
66 pb = ProcessTools.createJavaProcessBuilder( |
66 pb = ProcessTools.createJavaProcessBuilder("-XX:-TraceMonitorInflation", |
67 "-XX:-TraceMonitorInflation", InnerClass.class.getName()); |
67 InnerClass.class.getName()); |
68 analyzeOutputOff(pb); |
68 analyzeOutputOff(pb); |
69 } |
69 } |
70 |
70 |
71 public static class Waiter { |
71 public static class Waiter { |
72 public static void foo() { |
72 public static void foo() { |