Mercurial > hg > truffle
diff src/share/vm/runtime/frame.cpp @ 11030:bed34a7a3b9b
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
author | coleenp |
---|---|
date | Fri, 21 Jun 2013 10:57:00 -0400 |
parents | 28e5aed7f3a6 |
children | e0c9a1d29eb4 |
line wrap: on
line diff
--- a/src/share/vm/runtime/frame.cpp Fri Jun 21 10:50:19 2013 -0400 +++ b/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()); }