From 7e465c621e92bbeabcc7b2cc8f894d1c7638160f Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 14 Apr 2019 19:46:22 -0400 Subject: [PATCH] use allocate_large directly in large remap path --- h_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h_malloc.c b/h_malloc.c index d4be9ff..d3a5355 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -1436,7 +1436,7 @@ EXPORT void *h_realloc(void *old, size_t size) { size_t copy_size = min(size, old_size); if (copy_size >= MREMAP_MOVE_THRESHOLD) { - void *new = allocate(size); + void *new = allocate_large(size); if (new == NULL) { thread_seal_metadata(); return NULL;