< prev index next >

test/hotspot/jtreg/runtime/appcds/sharedStrings/SharedStringsStress.java

Print this page

        

*** 43,53 **** String appJar = JarBuilder.build("SharedStringsStress", "HelloString"); String sharedArchiveConfigFile = System.getProperty("user.dir") + File.separator + "SharedStringsStress_gen.txt"; try (FileOutputStream fos = new FileOutputStream(sharedArchiveConfigFile)) { PrintWriter out = new PrintWriter(new OutputStreamWriter(fos)); ! out.println("VERSION: 1.0"); out.println("@SECTION: String"); out.println("31: shared_test_string_unique_14325"); for (int i=0; i<100000; i++) { String s = "generated_string " + i; out.println(s.length() + ": " + s); --- 43,53 ---- String appJar = JarBuilder.build("SharedStringsStress", "HelloString"); String sharedArchiveConfigFile = System.getProperty("user.dir") + File.separator + "SharedStringsStress_gen.txt"; try (FileOutputStream fos = new FileOutputStream(sharedArchiveConfigFile)) { PrintWriter out = new PrintWriter(new OutputStreamWriter(fos)); ! out.println("VERSION: 1.1"); out.println("@SECTION: String"); out.println("31: shared_test_string_unique_14325"); for (int i=0; i<100000; i++) { String s = "generated_string " + i; out.println(s.length() + ": " + s);
< prev index next >