test/hotspot/jtreg/compiler/aot/fingerprint/CDSDumper.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File open Cdiff test/hotspot/jtreg/compiler/aot/fingerprint/CDSDumper.java

test/hotspot/jtreg/compiler/aot/fingerprint/CDSDumper.java

Print this page

        

*** 29,57 **** import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.ProcessTools; // Usage: ! // java CDSDumper <classpath> <classlist> <archive> <class1> <class2> ... public class CDSDumper { public static void main(String[] args) throws Exception { String classpath = args[0]; String classlist = args[1]; String archive = args[2]; // Prepare the classlist FileOutputStream fos = new FileOutputStream(classlist); PrintStream ps = new PrintStream(fos); ! for (int i=3; i<args.length; i++) { ps.println(args[i].replace('.', '/')); } ps.close(); fos.close(); // Dump the archive ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:+IgnoreUnrecognizedVMOptions", "-XX:+UnlockCommercialFeatures", "-XX:+UseAppCDS", "-XX:+UnlockDiagnosticVMOptions", "-cp", classpath, --- 29,59 ---- import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.ProcessTools; // Usage: ! // java CDSDumper <classpath> <classlist> <archive> <heapsize> <class1> <class2> ... public class CDSDumper { public static void main(String[] args) throws Exception { String classpath = args[0]; String classlist = args[1]; String archive = args[2]; + String heapsize = args[3]; // Prepare the classlist FileOutputStream fos = new FileOutputStream(classlist); PrintStream ps = new PrintStream(fos); ! for (int i=4; i<args.length; i++) { ps.println(args[i].replace('.', '/')); } ps.close(); fos.close(); // Dump the archive ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( + heapsize, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:+UnlockCommercialFeatures", "-XX:+UseAppCDS", "-XX:+UnlockDiagnosticVMOptions", "-cp", classpath,
test/hotspot/jtreg/compiler/aot/fingerprint/CDSDumper.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File