test/hotspot/jtreg/runtime/appcds/TestCommon.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/TestCommon.java	Fri Sep 21 10:03:03 2018
--- new/test/hotspot/jtreg/runtime/appcds/TestCommon.java	Fri Sep 21 10:03:03 2018

*** 108,121 **** --- 108,117 ---- .setAppClasses(appClasses); opts.addSuffix(suffix); return createArchive(opts); } public static String[] makeCommandLineForAppCDS(String... args) throws Exception { return args; } // Create AppCDS archive using appcds options public static OutputAnalyzer createArchive(AppCDSOptions opts) throws Exception { ArrayList<String> cmd = new ArrayList<String>();
*** 141,151 **** --- 137,147 ---- cmd.add("-XX:SharedArchiveFile=" + opts.archiveName); for (String s : opts.suffix) cmd.add(s); String[] cmdLine = cmd.toArray(new String[cmd.size()]); ! ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(true, makeCommandLineForAppCDS(cmdLine)); return executeAndLog(pb, "dump"); } // Execute JVM using AppCDS archive with specified AppCDSOptions
*** 167,177 **** --- 163,173 ---- } for (String s : opts.suffix) cmd.add(s); String[] cmdLine = cmd.toArray(new String[cmd.size()]); ! ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(true, makeCommandLineForAppCDS(cmdLine)); return executeAndLog(pb, "exec"); } public static OutputAnalyzer execCommon(String... suffix) throws Exception {

test/hotspot/jtreg/runtime/appcds/TestCommon.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File