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
--- a/hotspot/src/share/vm/runtime/frame.cpp Fri Jun 21 10:50:19 2013 -0400
+++ b/hotspot/src/share/vm/runtime/frame.cpp Fri Jun 21 10:57:00 2013 -0400
@@ -713,7 +713,8 @@
Method* m = ((nmethod *)_cb)->method();
if (m != NULL) {
m->name_and_sig_as_C_string(buf, buflen);
- st->print("J %s", buf);
+ st->print("J %s @ " PTR_FORMAT " [" PTR_FORMAT "+" SIZE_FORMAT "]",
+ buf, _pc, _cb->code_begin(), _pc - _cb->code_begin());
} else {
st->print("J " PTR_FORMAT, pc());
}