8191580: open/test/hotspot/jtreg/runtime/LoadClass/TestResize fails on product build
Summary: Guarded the test with the tag requiring debug build
Reviewed-by: jiangli
--- a/test/hotspot/jtreg/runtime/LoadClass/TestResize.java Tue Nov 21 12:48:17 2017 +0100
+++ b/test/hotspot/jtreg/runtime/LoadClass/TestResize.java Tue Nov 21 10:21:24 2017 -0600
@@ -29,6 +29,7 @@
* @modules java.base/jdk.internal.misc
* java.management
* @compile TriggerResize.java
+ * @requires (vm.debug == true)
* @run driver TestResize
*/
@@ -95,9 +96,11 @@
}
public static void main(String[] args) throws Exception {
- ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+PrintSystemDictionaryAtExit",
- "TriggerResize",
- "50000");
- analyzeOutputOn(pb);
+ if (Platform.isDebugBuild()) {
+ ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+PrintSystemDictionaryAtExit",
+ "TriggerResize",
+ "50000");
+ analyzeOutputOn(pb);
+ }
}
}