Use twice the DEFAULT_MMAP_THRESHOLD_MAX value for HEAP_MAX_SIZE.
authordrepper <drepper>
Tue, 22 Aug 2006 06:39:51 +0000 (06:39 +0000)
committerdrepper <drepper>
Tue, 22 Aug 2006 06:39:51 +0000 (06:39 +0000)
malloc/arena.c

index e96b3b4..6f4b0c4 100644 (file)
@@ -25,7 +25,7 @@
 #define HEAP_MIN_SIZE (32*1024)
 #ifndef HEAP_MAX_SIZE
 # ifdef DEFAULT_MMAP_THRESHOLD_MAX
-#  define HEAP_MAX_SIZE DEFAULT_MMAP_THRESHOLD_MAX
+#  define HEAP_MAX_SIZE (2 * DEFAULT_MMAP_THRESHOLD_MAX)
 # else
 #  define HEAP_MAX_SIZE (1024*1024) /* must be a power of two */
 # endif