comparison src/share/vm/graal/graalRuntime.hpp @ 16273:d6ffc6164830

handle any exception raised during Graal option checking/parsing, not just those with a non-null message
author Doug Simon <doug.simon@oracle.com>
date Fri, 27 Jun 2014 22:21:40 +0200
parents d56a09df1a1f
children ad431bf0de07
comparison
equal deleted inserted replaced
16272:56cd93afdc15 16273:d6ffc6164830
131 131
132 /** 132 /**
133 * Aborts the VM due to an unexpected exception. 133 * Aborts the VM due to an unexpected exception.
134 */ 134 */
135 static void abort_on_pending_exception(Handle exception, const char* message, bool dump_core = false); 135 static void abort_on_pending_exception(Handle exception, const char* message, bool dump_core = false);
136
137 /**
138 * Calls Throwable.printStackTrace() on a given exception.
139 */
140 static void call_printStackTrace(Handle exception, Thread* thread);
136 141
137 #define GUARANTEE_NO_PENDING_EXCEPTION(error_message) do { \ 142 #define GUARANTEE_NO_PENDING_EXCEPTION(error_message) do { \
138 if (HAS_PENDING_EXCEPTION) { \ 143 if (HAS_PENDING_EXCEPTION) { \
139 GraalRuntime::abort_on_pending_exception(PENDING_EXCEPTION, error_message); \ 144 GraalRuntime::abort_on_pending_exception(PENDING_EXCEPTION, error_message); \
140 } \ 145 } \