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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user