8017177: more explicit code location information in hs_err crash log
authorcoleenp
Fri, 21 Jun 2013 10:57:00 -0400
changeset 18435 00dc3c50f562
parent 18434 2932166737d5
child 18437 e5775072e4c7
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
hotspot/src/share/vm/runtime/frame.cpp
--- 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());
       }