* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
commit218c4301c2550e1254eb1ae51fac0ab1ecaba645
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 May 2007 15:30:57 +0000 (7 15:30 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 7 May 2007 15:30:57 +0000 (7 15:30 +0000)
tree5fa83737189b7e0acdd5ba025b633326386ed74f
parent07885d6a17a85e4f8919c74d36547ccb12c41812
* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
(new_heap): Initialize mprotect_size.
(grow_heap): When growing, only mprotect from mprotect_size till
new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
ChangeLog
malloc/Makefile
malloc/arena.c