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

@ -605,9 +605,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);
if (Verbose) { st->print_cr("pc at " PTR_FORMAT, p2i(pc)); }
st->print_cr("Instructions: (pc=" PTR_FORMAT ")", p2i(pc));
print_hex_dump(st, pc-64, pc+64, /*intrsize=*/4);
print_instructions(st, pc, /*intrsize=*/4);
st->cr();
}