# HG changeset patch # User Thomas Wuerthinger # Date 1288799930 -3600 # Node ID 50ff0b5b971bd95521e5583952130078116080c5 # Parent f8ab19e5acae2b3139d57ddfb4557e7d496c89ca Improved exception reporting after exception in compileMethod. diff -r f8ab19e5acae -r 50ff0b5b971b src/share/vm/c1x/c1x_VMExits.hpp --- a/src/share/vm/c1x/c1x_VMExits.hpp Wed Nov 03 16:40:38 2010 +0100 +++ b/src/share/vm/c1x/c1x_VMExits.hpp Wed Nov 03 16:58:50 2010 +0100 @@ -82,8 +82,10 @@ inline void check_pending_exception(const char* message) { Thread* THREAD = Thread::current(); if (THREAD->has_pending_exception()) { - java_lang_Throwable::print(PENDING_EXCEPTION, tty); - java_lang_Throwable::print_stack_trace(PENDING_EXCEPTION, tty); + Handle exception = PENDING_EXCEPTION; + CLEAR_PENDING_EXCEPTION; + java_lang_Throwable::print(exception, tty); + java_lang_Throwable::print_stack_trace(exception(), tty); fatal(message); } }