aboutsummaryrefslogtreecommitdiff
path: root/malloc/arena.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-05-13 20:32:57 +0000
committerUlrich Drepper <drepper@redhat.com>2007-05-13 20:32:57 +0000
commitbf98bd2966b728e29cb05eb562a711b819fec22e (patch)
treedff596726a6839dd430780f9d038b2c30479f471 /malloc/arena.c
parent11ed671328d01ce486e11a80f66bf596d8b0fd44 (diff)
downloadglibc-bf98bd2966b728e29cb05eb562a711b819fec22e.tar
glibc-bf98bd2966b728e29cb05eb562a711b819fec22e.tar.gz
glibc-bf98bd2966b728e29cb05eb562a711b819fec22e.tar.bz2
glibc-bf98bd2966b728e29cb05eb562a711b819fec22e.zip
[MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max is the target.
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index ce64335567..9e3ff47347 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -370,6 +370,9 @@ ptmalloc_init_minimal (void)
mp_.top_pad = DEFAULT_TOP_PAD;
#endif
mp_.n_mmaps_max = DEFAULT_MMAP_MAX;
+#if MALLOC_DEBUG
+ mp_.n_mmaps_cmax = DEFAULT_MMAP_MAX;
+#endif
mp_.mmap_threshold = DEFAULT_MMAP_THRESHOLD;
mp_.trim_threshold = DEFAULT_TRIM_THRESHOLD;
mp_.pagesize = malloc_getpagesize;