From 7cc0ca813db63b920ad07830605b2e9e46c64949 Mon Sep 17 00:00:00 2001 From: coleenp Date: Fri, 21 Jun 2013 10:57:00 -0400 Subject: [PATCH] 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 --- src/share/vm/runtime/frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/share/vm/runtime/frame.cpp b/src/share/vm/runtime/frame.cpp index e5caf604d..bf9d422b0 100644 --- a/src/share/vm/runtime/frame.cpp +++ b/src/share/vm/runtime/frame.cpp @@ -713,7 +713,8 @@ void frame::print_on_error(outputStream* st, char* buf, int buflen, bool verbose 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()); } -- GitLab