src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilationWrapper.java
equal
deleted
inserted
replaced
300 } |
300 } |
301 } |
301 } |
302 } |
302 } |
303 } |
303 } |
304 |
304 |
|
305 /** |
|
306 * Calls {@link System#exit(int)} in the runtime embedding the Graal compiler. This will be a |
|
307 * different runtime than Graal's runtime in the case of libgraal. |
|
308 */ |
|
309 protected abstract void exitHostVM(int status); |
|
310 |
305 private void maybeExitVM(ExceptionAction action) { |
311 private void maybeExitVM(ExceptionAction action) { |
306 if (action == ExitVM) { |
312 if (action == ExitVM) { |
307 TTY.println("Exiting VM after retry compilation of " + this); |
313 TTY.println("Exiting VM after retry compilation of " + this); |
308 System.exit(-1); |
314 exitHostVM(-1); |
309 } |
315 } |
310 } |
316 } |
311 |
317 |
312 /** |
318 /** |
313 * Adjusts {@code initialAction} if necessary based on |
319 * Adjusts {@code initialAction} if necessary based on |