8217879: hs_err should print more instructions in hex dump

Reviewed-by: stuefe, coleenp, dholmes, lucy, stefank
This commit is contained in:
Aleksey Shipilev 2019-02-01 16:03:15 +01:00
parent d176e20898
commit 8f65fa9303
13 changed files with 24 additions and 23 deletions

View file

@ -574,8 +574,7 @@ void os::print_context(outputStream *st, const void *context) {
// point to garbage if entry point in an nmethod is corrupted. Leave
// this at the end, and hope for the best.
address pc = os::Linux::ucontext_get_pc(uc);
st->print_cr("Instructions: (pc=" PTR_FORMAT ")", p2i(pc));
print_hex_dump(st, pc - 64, pc + 64, /*instrsize=*/4);
print_instructions(st, pc, /*instrsize=*/4);
st->cr();
}