summaryrefslogtreecommitdiffstats
path: root/libc/bionic/dlmalloc.h
diff options
context:
space:
mode:
authorRom Lemarchand <romlem@google.com>2013-07-23 11:30:52 -0700
committerRom Lemarchand <romlem@google.com>2013-07-23 13:48:39 -0700
commitd0f2a6014c138945f78108b21b54a813c7a055db (patch)
treee85eed80c57edd9bebdfca324ab7e71331eb15dc /libc/bionic/dlmalloc.h
parent6fe4a58f84954523f17114f1f7cf060a3573c073 (diff)
downloadbionic-d0f2a6014c138945f78108b21b54a813c7a055db.zip
bionic-d0f2a6014c138945f78108b21b54a813c7a055db.tar.gz
bionic-d0f2a6014c138945f78108b21b54a813c7a055db.tar.bz2
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 <romlem@google.com>
Diffstat (limited to 'libc/bionic/dlmalloc.h')
-rw-r--r--libc/bionic/dlmalloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/bionic/dlmalloc.h b/libc/bionic/dlmalloc.h
index a00a583..71b3be8 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"