8225450: use @file in CtwRunner
Reviewed-by: kvn
This commit is contained in:
parent
d55497d5d4
commit
8bdcada62b
@ -258,7 +258,9 @@ public class CtwRunner {
|
||||
|
||||
private String[] cmd(long classStart, long classStop) {
|
||||
String phase = phaseName(classStart);
|
||||
return new String[] {
|
||||
Path file = Paths.get(phase + ".cmd");
|
||||
try {
|
||||
Files.write(file, List.of(
|
||||
"-Xbatch",
|
||||
"-XX:-UseCounterDecay",
|
||||
"-XX:-ShowMessageBoxOnError",
|
||||
@ -285,8 +287,11 @@ public class CtwRunner {
|
||||
"-XX:CompileCommand=exclude,java/lang/invoke/MethodHandle.*",
|
||||
// CTW entry point
|
||||
CompileTheWorld.class.getName(),
|
||||
target,
|
||||
};
|
||||
target));
|
||||
} catch (IOException e) {
|
||||
throw new Error("can't create " + file, e);
|
||||
}
|
||||
return new String[]{ "@" + file.toAbsolutePath() };
|
||||
}
|
||||
|
||||
private String phaseName(long classStart) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user