Skip to content

Commit

Permalink
8302811: NMT.random_reallocs_vm fails if NMT is off
Browse files Browse the repository at this point in the history
Reviewed-by: jsjolen, sgehwolf
  • Loading branch information
tstuefe committed Feb 23, 2023
1 parent fcaf871 commit 23e9d9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/hotspot/gtest/nmt/test_nmt_cornercases.cpp
Expand Up @@ -104,7 +104,9 @@ static void* do_realloc(void* p, size_t old_size, size_t new_size, uint8_t old_c
if (old_size < new_size) {
GtestUtils::check_range((char*)p2, old_size, old_content);
#ifdef ASSERT
GtestUtils::check_range((char*)p2 + old_size, new_size - old_size, uninitBlockPad);
if (MemTracker::enabled()) {
GtestUtils::check_range((char*)p2 + old_size, new_size - old_size, uninitBlockPad);
}
#endif
} else {
GtestUtils::check_range((char*)p2, new_size, old_content);
Expand Down

1 comment on commit 23e9d9d

@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.