# HG changeset patch # User Doug Simon # Date 1342294103 -7200 # Node ID 143e68e4e4d336c9d91db28711ec54cfdb880b3b # Parent 299388a5796d28c109c014ad0b59fbc210508bba added pc offset within nmethod to output for TraceExceptions diff -r 299388a5796d -r 143e68e4e4d3 src/share/vm/c1/c1_Runtime1.cpp --- a/src/share/vm/c1/c1_Runtime1.cpp Sat Jul 14 21:26:14 2012 +0200 +++ b/src/share/vm/c1/c1_Runtime1.cpp Sat Jul 14 21:28:23 2012 +0200 @@ -535,8 +535,9 @@ if (TraceExceptions) { ttyLocker ttyl; ResourceMark rm; - tty->print_cr("Exception <%s> (0x%x) thrown in compiled method <%s> at PC " PTR_FORMAT " for thread 0x%x", - exception->print_value_string(), (address)exception(), nm->method()->print_value_string(), pc, thread); + int offset = pc - nm->code_begin(); + tty->print_cr("Exception <%s> (0x%x) thrown in compiled method <%s> at PC " PTR_FORMAT " [" PTR_FORMAT "+%d] for thread 0x%x", + exception->print_value_string(), (address)exception(), nm->method()->print_value_string(), pc, nm->code_begin(), offset, thread); } // for AbortVMOnException flag NOT_PRODUCT(Exceptions::debug_check_abort(exception));