equal
deleted
inserted
replaced
27 * @summary make sure the SystemDictionary gets resized when load factor is too high |
27 * @summary make sure the SystemDictionary gets resized when load factor is too high |
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 * @compile TriggerResize.java |
31 * @compile TriggerResize.java |
|
32 * @requires (vm.debug == true) |
32 * @run driver TestResize |
33 * @run driver TestResize |
33 */ |
34 */ |
34 |
35 |
35 import java.lang.ProcessBuilder; |
36 import java.lang.ProcessBuilder; |
36 import java.lang.Process; |
37 import java.lang.Process; |
93 throw new RuntimeException("Error: test returned non-zero value"); |
94 throw new RuntimeException("Error: test returned non-zero value"); |
94 } |
95 } |
95 } |
96 } |
96 |
97 |
97 public static void main(String[] args) throws Exception { |
98 public static void main(String[] args) throws Exception { |
98 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+PrintSystemDictionaryAtExit", |
99 if (Platform.isDebugBuild()) { |
99 "TriggerResize", |
100 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+PrintSystemDictionaryAtExit", |
100 "50000"); |
101 "TriggerResize", |
101 analyzeOutputOn(pb); |
102 "50000"); |
|
103 analyzeOutputOn(pb); |
|
104 } |
102 } |
105 } |
103 } |
106 } |