test/runtime/logging/MonitorInflationTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/test/runtime/logging/MonitorInflationTest.java Tue Jan 12 14:50:55 2016
--- new/test/runtime/logging/MonitorInflationTest.java Tue Jan 12 14:50:55 2016
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 48,72 ****
--- 48,78 ----
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldNotContain("[monitorinflation]");
output.shouldHaveExitValue(0);
}
+ // Each ProcessBuilder should disable CDS with -Xshare:off so that no steps
+ // that produce necessary logging are skipped.
public static void main(String[] args) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
! "-Xlog:monitorinflation=debug", InnerClass.class.getName());
! "-Xlog:monitorinflation=debug", "-Xshare:off",
+ InnerClass.class.getName());
analyzeOutputOn(pb);
pb = ProcessTools.createJavaProcessBuilder(
! "-XX:+TraceMonitorInflation", InnerClass.class.getName());
! "-XX:+TraceMonitorInflation", "-Xshare:off",
+ InnerClass.class.getName());
analyzeOutputOn(pb);
pb = ProcessTools.createJavaProcessBuilder(
! "-Xlog:monitorinflation=off", InnerClass.class.getName());
! "-Xlog:monitorinflation=off", "-Xshare:off",
+ InnerClass.class.getName());
analyzeOutputOff(pb);
pb = ProcessTools.createJavaProcessBuilder(
! "-XX:-TraceMonitorInflation", InnerClass.class.getName());
! "-XX:-TraceMonitorInflation", "-Xshare:off",
+ InnerClass.class.getName());
analyzeOutputOff(pb);
}
public static class Waiter {
public static void foo() {
test/runtime/logging/MonitorInflationTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File