8191580: open/test/hotspot/jtreg/runtime/LoadClass/TestResize fails on product build
authorgziemski
Tue, 21 Nov 2017 10:21:24 -0600
changeset 48013 2098785677fb
parent 48012 90bb2706e6b4
child 48014 ae7bd89bdc0d
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
test/hotspot/jtreg/runtime/LoadClass/TestResize.java
--- 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);
+    }
   }
 }