From 5fa6e01929e7307c729f40dbc4e25b4acfaee8f2 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 8 Oct 2018 17:09:57 -0400 Subject: [PATCH] clearer name for MREMAP_MAYMOVE threshold --- malloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/malloc.c b/malloc.c index d569946..1d20f55 100644 --- a/malloc.c +++ b/malloc.c @@ -850,10 +850,10 @@ EXPORT void *h_calloc(size_t nmemb, size_t size) { return p; } -#define MREMAP_THRESHOLD (32 * 1024 * 1024) +#define MREMAP_MOVE_THRESHOLD (32 * 1024 * 1024) -static_assert(MREMAP_THRESHOLD >= REGION_QUARANTINE_SKIP_THRESHOLD, - "mremap threshold must be above region quarantine limit"); +static_assert(MREMAP_MOVE_THRESHOLD >= REGION_QUARANTINE_SKIP_THRESHOLD, + "mremap move threshold must be above region quarantine limit"); EXPORT void *h_realloc(void *old, size_t size) { if (old == NULL) { @@ -931,7 +931,7 @@ EXPORT void *h_realloc(void *old, size_t size) { } size_t copy_size = size < old_size ? size : old_size; - if (copy_size >= MREMAP_THRESHOLD) { + if (copy_size >= MREMAP_MOVE_THRESHOLD) { void *new = allocate(size); if (new == NULL) { return NULL;