mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8017177: more explicit code location information in hs_err crash log
Add code pc location for compiled code Reviewed-by: kvn, coleenp
This commit is contained in:
parent
90292afbfa
commit
42ca17cea2
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue