relabel large allocation guards when shrinking

pull/87/head
Daniel Micay 2019-03-23 23:01:12 -04:00
parent 64dfd23f7b
commit 3d142eb4c2
1 changed files with 1 additions and 0 deletions

View File

@ -1200,6 +1200,7 @@ EXPORT void *h_realloc(void *old, size_t size) {
thread_seal_metadata(); thread_seal_metadata();
return NULL; return NULL;
} }
memory_set_name(new_end, old_guard_size, "malloc large");
void *new_guard_end = (char *)new_end + old_guard_size; void *new_guard_end = (char *)new_end + old_guard_size;
regions_quarantine_deallocate_pages(new_guard_end, old_rounded_size - rounded_size, 0); regions_quarantine_deallocate_pages(new_guard_end, old_rounded_size - rounded_size, 0);