src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilationWrapper.java
changeset 59095 03fbcd06b4c0
parent 58299 6df94ce3ab2f
equal deleted inserted replaced
59094:5d4c3724e4c7 59095:03fbcd06b4c0
   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);