glibc/malloc
Siddhesh Poyarekar 9fab36eb58 Shrink heap on linux when overcommit_memory == 2
Using madvise with MADV_DONTNEED to release memory back to the kernel
is not sufficient to change the commit charge accounted against the
process on Linux.  It is OK however, when overcommit is enabled or is
heuristic.  However, when overcommit is restricted to a percentage of
memory setting the contents of /proc/sys/vm/overcommit_memory as 2, it
makes a difference since memory requests will fail.  Hence, we do what
we do with secure exec binaries, which is to call mmap on the region
to be dropped with MAP_FIXED. This internally unmaps the pages in
question and reduces the amount of memory accounted against the
process.
2012-09-25 14:30:52 +05:30
..
arena.c Shrink heap on linux when overcommit_memory == 2 2012-09-25 14:30:52 +05:30
Depend Update. 1999-10-04 22:59:43 +00:00
hooks.c Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0 2012-09-05 21:49:30 +05:30
Makefile Set "fail on error" mode directly in testsuite shell scripts 2012-09-25 02:48:31 +00:00
malloc.c Cleanup code duplication in malloc on fallback to use another arena 2012-09-07 14:40:58 +05:30
malloc.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
mallocbug.c Avoid warnings in test malloc program 2012-03-28 13:05:11 -04:00
mcheck-init.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
mcheck.c * malloc/arena.c: Fold copyright years. 2012-09-05 20:47:16 -03:00
mcheck.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
memusage.c * malloc/arena.c: Fold copyright years. 2012-09-05 20:47:16 -03:00
memusage.sh Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
memusagestat.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
morecore.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
mtrace.c Rename __secure_getenv to secure_getenv 2012-07-25 19:46:22 +02:00
mtrace.pl Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
obstack.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
obstack.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
set-freeres.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
thread-freeres.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-calloc.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-malloc-usable.c Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0 2012-09-05 21:49:30 +05:30
tst-malloc.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-mallocfork.c * malloc/tst-mallocfork.c (do_test): Make sure sa_flags is 2005-12-06 00:50:15 +00:00
tst-mallocstate.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-mcheck.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-mtrace.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-mtrace.sh Set "fail on error" mode directly in testsuite shell scripts 2012-09-25 02:48:31 +00:00
tst-obstack.c Update. 2000-11-20 17:40:29 +00:00
tst-trim1.c * malloc/tst-trim1.c: New file. 2007-12-16 22:57:57 +00:00
tst-valloc.c Update. 2000-11-20 17:40:29 +00:00
Versions Implement aligned_alloc 2012-01-01 07:17:21 -05:00