diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-08-22 06:42:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-08-22 06:42:35 +0000 |
commit | bd2c234116f0a5cb022b9566266dc2b29eff9311 (patch) | |
tree | 360a4fe2dbc13047172adb292645fa97640b1602 /malloc/malloc.c | |
parent | e404fb16fc35210219159a446f7c993760a37316 (diff) | |
download | glibc-bd2c234116f0a5cb022b9566266dc2b29eff9311.tar glibc-bd2c234116f0a5cb022b9566266dc2b29eff9311.tar.gz glibc-bd2c234116f0a5cb022b9566266dc2b29eff9311.tar.bz2 glibc-bd2c234116f0a5cb022b9566266dc2b29eff9311.zip |
platforms define as 512K. For 64-bit platforms as 32MB. The lower
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r-- | malloc/malloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 7ad26af069..02f659708d 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1427,12 +1427,12 @@ int __posix_memalign(void **, size_t, size_t); #ifndef DEFAULT_MMAP_THRESHOLD_MAX /* For 32-bit platforms we cannot increase the maximum mmap threshold much because it is also the minimum value for the - maximum heap size and its alignment. Going above 1MB wastes too - much address space. */ + maximum heap size and its alignment. Going above 512k (i.e., 1M + for new heaps) wastes too much address space. */ # if __WORDSIZE == 32 -# define DEFAULT_MMAP_THRESHOLD_MAX (1024 * 1024) +# define DEFAULT_MMAP_THRESHOLD_MAX (512 * 1024) # else -# define DEFAULT_MMAP_THRESHOLD_MAX (8 * 1024 * 1024 * sizeof(long)) +# define DEFAULT_MMAP_THRESHOLD_MAX (4 * 1024 * 1024 * sizeof(long)) # endif #endif |