equal
deleted
inserted
replaced
28 * @key gc |
28 * @key gc |
29 * @bug 8179084 |
29 * @bug 8179084 |
30 * @requires vm.gc.Parallel |
30 * @requires vm.gc.Parallel |
31 * @summary Test argument processing for -XX:+AggressiveHeap. |
31 * @summary Test argument processing for -XX:+AggressiveHeap. |
32 * @library /test/lib |
32 * @library /test/lib |
|
33 * @library / |
33 * @modules java.base java.management |
34 * @modules java.base java.management |
34 * @run driver gc.arguments.TestAggressiveHeap |
35 * @run driver gc.arguments.TestAggressiveHeap |
35 */ |
36 */ |
36 |
37 |
37 import java.lang.management.ManagementFactory; |
38 import java.lang.management.ManagementFactory; |
64 // bool UseParallelGC = true {product} {command line} |
65 // bool UseParallelGC = true {product} {command line} |
65 private static final String parallelGCPattern = |
66 private static final String parallelGCPattern = |
66 " *bool +UseParallelGC *= *true +\\{product\\} *\\{command line\\}"; |
67 " *bool +UseParallelGC *= *true +\\{product\\} *\\{command line\\}"; |
67 |
68 |
68 private static void testFlag() throws Exception { |
69 private static void testFlag() throws Exception { |
69 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( |
70 ProcessBuilder pb = GCArguments.createJavaProcessBuilder( |
70 option, heapSizeOption, "-XX:+PrintFlagsFinal", "-version"); |
71 option, heapSizeOption, "-XX:+PrintFlagsFinal", "-version"); |
71 |
72 |
72 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
73 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
73 |
74 |
74 output.shouldHaveExitValue(0); |
75 output.shouldHaveExitValue(0); |