equal
deleted
inserted
replaced
27 * @test TestHeapFreeRatio |
27 * @test TestHeapFreeRatio |
28 * @key gc |
28 * @key gc |
29 * @bug 8025661 |
29 * @bug 8025661 |
30 * @summary Test parsing of -Xminf and -Xmaxf |
30 * @summary Test parsing of -Xminf and -Xmaxf |
31 * @library /test/lib |
31 * @library /test/lib |
|
32 * @library / |
32 * @modules java.base/jdk.internal.misc |
33 * @modules java.base/jdk.internal.misc |
33 * java.management |
34 * java.management |
34 * @run main/othervm gc.arguments.TestHeapFreeRatio |
35 * @run main/othervm gc.arguments.TestHeapFreeRatio |
35 */ |
36 */ |
36 |
37 |
46 OUT_OF_RANGE, |
47 OUT_OF_RANGE, |
47 COMBINATION_INVALID |
48 COMBINATION_INVALID |
48 } |
49 } |
49 |
50 |
50 private static void testMinMaxFreeRatio(String min, String max, Validation type) throws Exception { |
51 private static void testMinMaxFreeRatio(String min, String max, Validation type) throws Exception { |
51 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( |
52 ProcessBuilder pb = GCArguments.createJavaProcessBuilder( |
52 "-Xminf" + min, |
53 "-Xminf" + min, |
53 "-Xmaxf" + max, |
54 "-Xmaxf" + max, |
54 "-version"); |
55 "-version"); |
55 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
56 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
56 |
57 |