* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
authorjakub <jakub>
Mon, 7 May 2007 15:30:55 +0000 (15:30 +0000)
committerjakub <jakub>
Mon, 7 May 2007 15:30:55 +0000 (15:30 +0000)
commit51947d6d6301d1c8278681a4fc2282d7d6a9ba38
tree5fa83737189b7e0acdd5ba025b633326386ed74f
parent9f2de9fedd9d060741002180e8060d14db4996e8
* 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