8017177: more explicit code location information in hs_err crash log

Fri, 21 Jun 2013 10:57:00 -0400

author
coleenp
date
Fri, 21 Jun 2013 10:57:00 -0400
changeset 5303
bed34a7a3b9b
parent 5302
9ba41a4a71ff
child 5305
b7bc7c94b4b5

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 file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/frame.cpp	Fri Jun 21 10:50:19 2013 -0400
     1.2 +++ b/src/share/vm/runtime/frame.cpp	Fri Jun 21 10:57:00 2013 -0400
     1.3 @@ -713,7 +713,8 @@
     1.4        Method* m = ((nmethod *)_cb)->method();
     1.5        if (m != NULL) {
     1.6          m->name_and_sig_as_C_string(buf, buflen);
     1.7 -        st->print("J  %s", buf);
     1.8 +        st->print("J  %s @ " PTR_FORMAT " [" PTR_FORMAT "+" SIZE_FORMAT "]",
     1.9 +                  buf, _pc, _cb->code_begin(), _pc - _cb->code_begin());
    1.10        } else {
    1.11          st->print("J  " PTR_FORMAT, pc());
    1.12        }

mercurial