Skip to content

Commit

Permalink
8298003: NMT: fatal block printout does not show the correct corrupti…
Browse files Browse the repository at this point in the history
…on address

Reviewed-by: shade, mbaesken
  • Loading branch information
tstuefe committed Dec 3, 2022
1 parent 99e2ef4 commit c67166f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hotspot/share/services/mallocHeader.inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ inline void MallocHeader::assert_block_integrity() const {
char msg[256];
address corruption = NULL;
if (!check_block_integrity(msg, sizeof(msg), &corruption)) {
if (corruption != NULL) {
print_block_on_error(tty, (address)this);
}
print_block_on_error(tty, corruption != NULL ? corruption : (address)this);
fatal("NMT corruption: Block at " PTR_FORMAT ": %s", p2i(this), msg);
}
}
Expand Down

1 comment on commit c67166f

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.