< prev index next >

test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/CtwRunner.java

Print this page

276                 // redirect VM output to cerr so it won't collide w/ ctw output
277                 "-XX:+DisplayVMOutputToStderr",
278                 // define phase start
279                 "-DCompileTheWorldStartAt=" + classStart,
280                 "-DCompileTheWorldStopAt=" + classStop,
281                 // CTW library uses WhiteBox API
282                 "-XX:+WhiteBoxAPI", "-Xbootclasspath/a:.",
283                 // export jdk.internal packages used by CTW library
284                 "--add-exports", "java.base/jdk.internal.jimage=ALL-UNNAMED",
285                 "--add-exports", "java.base/jdk.internal.misc=ALL-UNNAMED",
286                 "--add-exports", "java.base/jdk.internal.reflect=ALL-UNNAMED",
287                 "--add-exports", "java.base/jdk.internal.access=ALL-UNNAMED",
288                 // enable diagnostic logging
289                 "-XX:+LogCompilation",
290                 // use phase specific log, hs_err and ciReplay files
291                 String.format("-XX:LogFile=hotspot_%s_%%p.log", phase),
292                 String.format("-XX:ErrorFile=hs_err_%s_%%p.log", phase),
293                 String.format("-XX:ReplayDataFile=replay_%s_%%p.log", phase),
294                 // MethodHandle MUST NOT be compiled
295                 "-XX:CompileCommand=exclude,java/lang/invoke/MethodHandle.*",
296                 // Stress* are c2-specific stress flags, so IgnoreUnrecognizedVMOptions is needed
297                 "-XX:+IgnoreUnrecognizedVMOptions",



298                 "-XX:+StressLCM",
299                 "-XX:+StressGCM",
300                 "-XX:+StressIGVN",
301                 "-XX:+StressCCP",
302                 // StressSeed is uint
303                 "-XX:StressSeed=" + Math.abs(rng.nextInt())));
304 
305         for (String arg : CTW_EXTRA_ARGS.split(",")) {
306             Args.add(arg);
307         }
308 
309         // CTW entry point
310         Args.add(CompileTheWorld.class.getName());
311         Args.add(target);
312 
313         try {
314             Files.write(file, Args);
315         } catch (IOException e) {
316             throw new Error("can't create " + file, e);
317         }

276                 // redirect VM output to cerr so it won't collide w/ ctw output
277                 "-XX:+DisplayVMOutputToStderr",
278                 // define phase start
279                 "-DCompileTheWorldStartAt=" + classStart,
280                 "-DCompileTheWorldStopAt=" + classStop,
281                 // CTW library uses WhiteBox API
282                 "-XX:+WhiteBoxAPI", "-Xbootclasspath/a:.",
283                 // export jdk.internal packages used by CTW library
284                 "--add-exports", "java.base/jdk.internal.jimage=ALL-UNNAMED",
285                 "--add-exports", "java.base/jdk.internal.misc=ALL-UNNAMED",
286                 "--add-exports", "java.base/jdk.internal.reflect=ALL-UNNAMED",
287                 "--add-exports", "java.base/jdk.internal.access=ALL-UNNAMED",
288                 // enable diagnostic logging
289                 "-XX:+LogCompilation",
290                 // use phase specific log, hs_err and ciReplay files
291                 String.format("-XX:LogFile=hotspot_%s_%%p.log", phase),
292                 String.format("-XX:ErrorFile=hs_err_%s_%%p.log", phase),
293                 String.format("-XX:ReplayDataFile=replay_%s_%%p.log", phase),
294                 // MethodHandle MUST NOT be compiled
295                 "-XX:CompileCommand=exclude,java/lang/invoke/MethodHandle.*",

296                 "-XX:+IgnoreUnrecognizedVMOptions",
297                 // Do not pay extra zapping cost for explicit GC invocations
298                 "-XX:-ZapUnusedHeapArea",
299                 // Stress* are c2-specific stress flags, so IgnoreUnrecognizedVMOptions is needed
300                 "-XX:+StressLCM",
301                 "-XX:+StressGCM",
302                 "-XX:+StressIGVN",
303                 "-XX:+StressCCP",
304                 // StressSeed is uint
305                 "-XX:StressSeed=" + Math.abs(rng.nextInt())));
306 
307         for (String arg : CTW_EXTRA_ARGS.split(",")) {
308             Args.add(arg);
309         }
310 
311         // CTW entry point
312         Args.add(CompileTheWorld.class.getName());
313         Args.add(target);
314 
315         try {
316             Files.write(file, Args);
317         } catch (IOException e) {
318             throw new Error("can't create " + file, e);
319         }
< prev index next >