From d0f2a6014c138945f78108b21b54a813c7a055db Mon Sep 17 00:00:00 2001 From: Rom Lemarchand Date: Tue, 23 Jul 2013 11:30:52 -0700 Subject: [PATCH] Restore dlmalloc mmap threshold to 64k Restoring DEFAULT_MMAP_THRESHOLD to 64k, the way it was before 999089181ef60bb67e1a49f2cf6f4ec608a7caf8. This forces allocations in the 64k-256k range to be mmaped. Change-Id: Iace55ed638edd272b3e94fa6cd2ddd349042be84 Signed-off-by: Rom Lemarchand --- libc/bionic/dlmalloc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/bionic/dlmalloc.h b/libc/bionic/dlmalloc.h index a00a583c3..71b3be885 100644 --- a/libc/bionic/dlmalloc.h +++ b/libc/bionic/dlmalloc.h @@ -27,6 +27,7 @@ #define LOCK_AT_FORK 1 #define USE_RECURSIVE_LOCK 0 #define USE_SPIN_LOCKS 0 +#define DEFAULT_MMAP_THRESHOLD (64U * 1024U) /* Include the proper definitions. */ #include "../upstream-dlmalloc/malloc.h"