comparison src/share/vm/runtime/frame.cpp @ 5327:28577a53d3a7

added address and offset to description of a compiled Java frame in a hs_err stack dump
author Doug Simon <doug.simon@oracle.com>
date Mon, 30 Apr 2012 20:26:47 +0200
parents 33df1aeaebbf
children 957c266d8bc5
comparison
equal deleted inserted replaced
5326:a53162ca8219 5327:28577a53d3a7
738 } else if (_cb->is_buffer_blob()) { 738 } else if (_cb->is_buffer_blob()) {
739 st->print("v ~BufferBlob::%s", ((BufferBlob *)_cb)->name()); 739 st->print("v ~BufferBlob::%s", ((BufferBlob *)_cb)->name());
740 } else if (_cb->is_nmethod()) { 740 } else if (_cb->is_nmethod()) {
741 methodOop m = ((nmethod *)_cb)->method(); 741 methodOop m = ((nmethod *)_cb)->method();
742 if (m != NULL) { 742 if (m != NULL) {
743 address code = _cb->code_begin();
743 m->name_and_sig_as_C_string(buf, buflen); 744 m->name_and_sig_as_C_string(buf, buflen);
744 st->print("J %s", buf); 745 st->print("J %s [" PTR_FORMAT "+%d]", buf, code, pc() - code);
745 } else { 746 } else {
746 st->print("J " PTR_FORMAT, pc()); 747 st->print("J " PTR_FORMAT, pc());
747 } 748 }
748 } else if (_cb->is_runtime_stub()) { 749 } else if (_cb->is_runtime_stub()) {
749 st->print("v ~RuntimeStub::%s", ((RuntimeStub *)_cb)->name()); 750 st->print("v ~RuntimeStub::%s", ((RuntimeStub *)_cb)->name());