changeset 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 a53162ca8219
children e4e02131c58b
files src/share/vm/runtime/frame.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/frame.cpp	Mon Apr 30 20:15:20 2012 +0200
+++ b/src/share/vm/runtime/frame.cpp	Mon Apr 30 20:26:47 2012 +0200
@@ -740,8 +740,9 @@
     } else if (_cb->is_nmethod()) {
       methodOop m = ((nmethod *)_cb)->method();
       if (m != NULL) {
+        address code = _cb->code_begin();
         m->name_and_sig_as_C_string(buf, buflen);
-        st->print("J  %s", buf);
+        st->print("J  %s [" PTR_FORMAT "+%d]", buf, code, pc() - code);
       } else {
         st->print("J  " PTR_FORMAT, pc());
       }