< prev index next >

test/hotspot/jtreg/gc/shenandoah/options/TestClassUnloadingArguments.java

Print this page
rev 59823 : 8247751: Shenandoah: options tests should run with smaller heaps
Reviewed-by: XXX

@@ -37,13 +37,14 @@
 import jdk.test.lib.process.OutputAnalyzer;
 
 public class TestClassUnloadingArguments {
 
     public static void testWith(String msg, boolean cu, boolean cuConc, String... args) throws Exception {
-        String[] cmds = Arrays.copyOf(args, args.length + 2);
-        cmds[args.length] = "-XX:+PrintFlagsFinal";
-        cmds[args.length + 1] = "-version";
+        String[] cmds = Arrays.copyOf(args, args.length + 3);
+        cmds[args.length] = "-Xmx128m";
+        cmds[args.length + 1] = "-XX:+PrintFlagsFinal";
+        cmds[args.length + 2] = "-version";
         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(cmds);
         OutputAnalyzer output = new OutputAnalyzer(pb.start());
         output.shouldHaveExitValue(0);
         output.shouldContain("ClassUnloading");
         output.shouldContain("ClassUnloadingWithConcurrentMark");
< prev index next >