src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilationWrapper.java
equal
deleted
inserted
replaced
241 } |
241 } |
242 |
242 |
243 String message; |
243 String message; |
244 ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
244 ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
245 try (PrintStream ps = new PrintStream(baos)) { |
245 try (PrintStream ps = new PrintStream(baos)) { |
|
246 // This output is used by external tools to detect compilation failures. |
|
247 ps.println("[[[Graal compilation failure]]]"); |
|
248 |
246 ps.printf("%s: Compilation of %s failed:%n", Thread.currentThread(), this); |
249 ps.printf("%s: Compilation of %s failed:%n", Thread.currentThread(), this); |
247 cause.printStackTrace(ps); |
250 cause.printStackTrace(ps); |
248 ps.printf("To disable compilation failure notifications, set %s to %s (e.g., -Dgraal.%s=%s).%n", |
251 ps.printf("To disable compilation failure notifications, set %s to %s (e.g., -Dgraal.%s=%s).%n", |
249 CompilationFailureAction.getName(), ExceptionAction.Silent, |
252 CompilationFailureAction.getName(), ExceptionAction.Silent, |
250 CompilationFailureAction.getName(), ExceptionAction.Silent); |
253 CompilationFailureAction.getName(), ExceptionAction.Silent); |