* malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 May 2007 15:30:57 +0000 (15:30 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 7 May 2007 15:30:57 +0000 (15:30 +0000)
commitc7fd336280f2d88be4a22303199323718c8c3a28
tree5fa83737189b7e0acdd5ba025b633326386ed74f
parent6780bc44e8b651cc67dbef2761fc92bdee46c45e
* 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.
2007-05-07  Ulrich Drepper  <drepper@redhat.com>
    Jakub Jelinek  <jakub@redhat.com>

* 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