mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8286876: NMT.test_unaliged_block_address_vm_assert fails if using clang toolchain
Reviewed-by: stuefe, gziemski
This commit is contained in:
parent
d097b5e628
commit
7b6ac41ab1
6 changed files with 51 additions and 30 deletions
|
@ -726,8 +726,7 @@ void* os::realloc(void *memblock, size_t size, MEMFLAGS memflags, const NativeCa
|
|||
|
||||
// Perform integrity checks on and mark the old block as dead *before* calling the real realloc(3) since it
|
||||
// may invalidate the old block, including its header.
|
||||
MallocHeader* header = MallocTracker::malloc_header(memblock);
|
||||
header->assert_block_integrity(); // Assert block hasn't been tampered with.
|
||||
MallocHeader* header = MallocHeader::resolve_checked(memblock);
|
||||
const MallocHeader::FreeInfo free_info = header->free_info();
|
||||
header->mark_block_as_dead();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue