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

test/hotspot/jtreg/runtime/appcds/TestCommon.java

Print this page

        

*** 108,121 **** .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>(); --- 108,117 ----
*** 141,151 **** 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 --- 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, cmdLine); return executeAndLog(pb, "dump"); } // Execute JVM using AppCDS archive with specified AppCDSOptions
*** 167,177 **** } 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 { --- 163,173 ---- } for (String s : opts.suffix) cmd.add(s); String[] cmdLine = cmd.toArray(new String[cmd.size()]); ! ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(true, 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