Mercurial > hg > graal-jvmci-8
diff src/share/vm/jvmci/jvmciRuntime.hpp @ 23751:b1b5c71c04b7
replace use of vm_abort with vm_exit
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 08 Sep 2016 15:06:36 +0200 |
parents | 1b939a613788 |
children |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciRuntime.hpp Wed Sep 07 16:45:44 2016 +0200 +++ b/src/share/vm/jvmci/jvmciRuntime.hpp Thu Sep 08 15:06:36 2016 +0200 @@ -133,24 +133,24 @@ static void fthrow_error(Thread* thread, const char* file, int line, const char* format, ...) ATTRIBUTE_PRINTF(4, 5); /** - * Aborts the VM due to an unexpected exception. + * Exits the VM due to an unexpected exception. */ - static void abort_on_pending_exception(Handle exception, const char* message, bool dump_core = false); + static void exit_on_pending_exception(Handle exception, const char* message); -#define CHECK_ABORT THREAD); \ +#define CHECK_EXIT THREAD); \ if (HAS_PENDING_EXCEPTION) { \ char buf[256]; \ jio_snprintf(buf, 256, "Uncaught exception at %s:%d", __FILE__, __LINE__); \ - JVMCIRuntime::abort_on_pending_exception(PENDING_EXCEPTION, buf); \ + JVMCIRuntime::exit_on_pending_exception(PENDING_EXCEPTION, buf); \ return; \ } \ (void)(0 -#define CHECK_ABORT_(result) THREAD); \ +#define CHECK_EXIT_(result) THREAD); \ if (HAS_PENDING_EXCEPTION) { \ char buf[256]; \ jio_snprintf(buf, 256, "Uncaught exception at %s:%d", __FILE__, __LINE__); \ - JVMCIRuntime::abort_on_pending_exception(PENDING_EXCEPTION, buf); \ + JVMCIRuntime::exit_on_pending_exception(PENDING_EXCEPTION, buf); \ return result; \ } \ (void)(0 @@ -165,11 +165,6 @@ */ static Klass* resolve_or_fail(Symbol* name, TRAPS); - /** - * Loads a given JVMCI class and aborts the VM if it fails. - */ - static Klass* load_required_class(Symbol* name); - static BasicType kindToBasicType(Handle kind, TRAPS); // The following routines are all called from compiled JVMCI code