Skip to content
Permalink
Browse files
8247201: Print potential pointer value of readable stack memory in hs…
…_err file

Reviewed-by: eosterlund, dholmes, tschatzl
  • Loading branch information
stefank committed Jun 10, 2020
1 parent 8e865fc commit c58aaca77e10861661b7c0c9564eab523ca91ac7
Showing 1 changed file with 3 additions and 0 deletions.
@@ -1157,6 +1157,9 @@ void os::print_location(outputStream* st, intptr_t x, bool verbose) {

if (accessible) {
st->print(INTPTR_FORMAT " points into unknown readable memory:", p2i(addr));
if (is_aligned(addr, sizeof(intptr_t))) {
st->print(" " PTR_FORMAT " |", *(intptr_t*)addr);
}
for (address p = addr; p < align_up(addr + 1, sizeof(intptr_t)); ++p) {
st->print(" %02x", *(u1*)p);
}

0 comments on commit c58aaca

Please sign in to comment.