Mercurial > hg > truffle
comparison src/share/vm/runtime/frame.cpp @ 11030:bed34a7a3b9b
8017177: more explicit code location information in hs_err crash log
Summary: Add code pc location for compiled code
Reviewed-by: kvn, coleenp
Contributed-by: doug.simon@oracle.com
author | coleenp |
---|---|
date | Fri, 21 Jun 2013 10:57:00 -0400 |
parents | 28e5aed7f3a6 |
children | e0c9a1d29eb4 |
comparison
equal
deleted
inserted
replaced
11029:9ba41a4a71ff | 11030:bed34a7a3b9b |
---|---|
711 st->print("v ~BufferBlob::%s", ((BufferBlob *)_cb)->name()); | 711 st->print("v ~BufferBlob::%s", ((BufferBlob *)_cb)->name()); |
712 } else if (_cb->is_nmethod()) { | 712 } else if (_cb->is_nmethod()) { |
713 Method* m = ((nmethod *)_cb)->method(); | 713 Method* m = ((nmethod *)_cb)->method(); |
714 if (m != NULL) { | 714 if (m != NULL) { |
715 m->name_and_sig_as_C_string(buf, buflen); | 715 m->name_and_sig_as_C_string(buf, buflen); |
716 st->print("J %s", buf); | 716 st->print("J %s @ " PTR_FORMAT " [" PTR_FORMAT "+" SIZE_FORMAT "]", |
717 buf, _pc, _cb->code_begin(), _pc - _cb->code_begin()); | |
717 } else { | 718 } else { |
718 st->print("J " PTR_FORMAT, pc()); | 719 st->print("J " PTR_FORMAT, pc()); |
719 } | 720 } |
720 } else if (_cb->is_runtime_stub()) { | 721 } else if (_cb->is_runtime_stub()) { |
721 st->print("v ~RuntimeStub::%s", ((RuntimeStub *)_cb)->name()); | 722 st->print("v ~RuntimeStub::%s", ((RuntimeStub *)_cb)->name()); |