< prev index next >

test/jdk/java/util/Arrays/TimSortStackSize2.java

Print this page
rev 50807 : [mq]: 8199265

*** 65,87 **** try { Boolean compressedOops = WhiteBox.getWhiteBox() .getBooleanVMFlag("UseCompressedOops"); long memory = (compressedOops == null || compressedOops) ? 385 : 770; final String xmsValue = "-Xms" + memory + "m"; ! final String xmxValue = "-Xmx" + memory + "m"; System.out.printf("compressedOops: %s; Test will be started with \"%s %s\"%n", compressedOops, xmsValue, xmxValue); ! ProcessBuilder processBuilder = ProcessTools ! .createJavaProcessBuilder(Utils.addTestJavaOpts(xmsValue, xmxValue, ! "TimSortStackSize2", "67108864" ! ) ! ); ! OutputAnalyzer output = ProcessTools.executeProcess(processBuilder); System.out.println(output.getOutput()); output.shouldHaveExitValue(0); ! } catch( Exception e ){ e.printStackTrace(); throw new RuntimeException(e); } } --- 65,85 ---- try { Boolean compressedOops = WhiteBox.getWhiteBox() .getBooleanVMFlag("UseCompressedOops"); long memory = (compressedOops == null || compressedOops) ? 385 : 770; final String xmsValue = "-Xms" + memory + "m"; ! final String xmxValue = "-Xmx" + 2 * memory + "m"; System.out.printf("compressedOops: %s; Test will be started with \"%s %s\"%n", compressedOops, xmsValue, xmxValue); ! OutputAnalyzer output = ProcessTools.executeTestJvm(xmsValue, ! xmxValue, ! "TimSortStackSize2", ! "67108864"); System.out.println(output.getOutput()); output.shouldHaveExitValue(0); ! } catch (Exception e) { e.printStackTrace(); throw new RuntimeException(e); } }
< prev index next >