# HG changeset patch # User gziemski # Date 1511281284 21600 # Node ID 2098785677fb251283212236d7f87f198e77f742 # Parent 90bb2706e6b4ccefb793adf481b2524a0c28d798 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 diff -r 90bb2706e6b4 -r 2098785677fb 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); + } } }