changeset 48210:2098785677fb

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
author gziemski
date Tue, 21 Nov 2017 10:21:24 -0600
parents 90bb2706e6b4
children ae7bd89bdc0d
files test/hotspot/jtreg/runtime/LoadClass/TestResize.java
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
+    }
   }
 }