提交 7cc0ca81 编写于 作者: C coleenp

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
上级 75ab2d06
......@@ -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());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册