equal
deleted
inserted
replaced
50 _exception_file = file; |
50 _exception_file = file; |
51 _exception_line = line; |
51 _exception_line = line; |
52 } |
52 } |
53 |
53 |
54 void ThreadShadow::clear_pending_exception() { |
54 void ThreadShadow::clear_pending_exception() { |
55 if (TraceClearedExceptions) { |
55 if (_pending_exception != NULL && log_is_enabled(Debug, exceptions)) { |
56 if (_pending_exception != NULL) { |
56 ResourceMark rm; |
57 tty->print_cr("Thread::clear_pending_exception: cleared exception:"); |
57 outputStream* logst = LogHandle(exceptions)::debug_stream(); |
58 _pending_exception->print(); |
58 logst->print("Thread::clear_pending_exception: cleared exception:"); |
59 } |
59 _pending_exception->print_on(logst); |
60 } |
60 } |
61 _pending_exception = NULL; |
61 _pending_exception = NULL; |
62 _exception_file = NULL; |
62 _exception_file = NULL; |
63 _exception_line = 0; |
63 _exception_line = 0; |
64 } |
64 } |