comparison src/share/vm/c1/c1_Runtime1.cpp @ 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 7d25723b7699
children 957c266d8bc5
comparison
equal deleted inserted replaced
5827:299388a5796d 5828:143e68e4e4d3
533 // debugging support 533 // debugging support
534 // tracing 534 // tracing
535 if (TraceExceptions) { 535 if (TraceExceptions) {
536 ttyLocker ttyl; 536 ttyLocker ttyl;
537 ResourceMark rm; 537 ResourceMark rm;
538 tty->print_cr("Exception <%s> (0x%x) thrown in compiled method <%s> at PC " PTR_FORMAT " for thread 0x%x", 538 int offset = pc - nm->code_begin();
539 exception->print_value_string(), (address)exception(), nm->method()->print_value_string(), pc, thread); 539 tty->print_cr("Exception <%s> (0x%x) thrown in compiled method <%s> at PC " PTR_FORMAT " [" PTR_FORMAT "+%d] for thread 0x%x",
540 exception->print_value_string(), (address)exception(), nm->method()->print_value_string(), pc, nm->code_begin(), offset, thread);
540 } 541 }
541 // for AbortVMOnException flag 542 // for AbortVMOnException flag
542 NOT_PRODUCT(Exceptions::debug_check_abort(exception)); 543 NOT_PRODUCT(Exceptions::debug_check_abort(exception));
543 544
544 // Clear out the exception oop and pc since looking up an 545 // Clear out the exception oop and pc since looking up an