Mercurial > hg > truffle
changeset 5828:143e68e4e4d3
added pc offset within nmethod to output for TraceExceptions
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sat, 14 Jul 2012 21:28:23 +0200 |
parents | 299388a5796d |
children | 0095a9c235c6 |
files | src/share/vm/c1/c1_Runtime1.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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));