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

@ -755,8 +755,8 @@ 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 - 32, pc + 32, sizeof(char));
print_instructions(st, pc, sizeof(char));
st->cr();
}
void os::print_register_info(outputStream *st, const void *context) {