hotspot/src/share/vm/utilities/exceptions.cpp
changeset 37110 0c468eab5c66
parent 35477 7a00b08d27bc
child 37190 09d719d466a6
equal deleted inserted replaced
37107:e89fc0bf4ecb 37110:0c468eab5c66
    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 }