1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

[MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max is the target.

This commit is contained in:
Ulrich Drepper
2007-05-13 20:32:57 +00:00
parent 11ed671328
commit bf98bd2966
3 changed files with 39 additions and 4 deletions

View File

@@ -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;