diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-05-07 15:30:57 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-05-07 15:30:57 +0000 |
commit | c7fd336280f2d88be4a22303199323718c8c3a28 (patch) | |
tree | 5fa83737189b7e0acdd5ba025b633326386ed74f /malloc/Makefile | |
parent | 6780bc44e8b651cc67dbef2761fc92bdee46c45e (diff) | |
download | glibc-c7fd336280f2d88be4a22303199323718c8c3a28.tar.gz glibc-c7fd336280f2d88be4a22303199323718c8c3a28.tar.xz glibc-c7fd336280f2d88be4a22303199323718c8c3a28.zip |
* 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.
Diffstat (limited to 'malloc/Makefile')
-rw-r--r-- | malloc/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/Makefile b/malloc/Makefile index c39eae5474..c251bcfb9d 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -104,6 +104,7 @@ $(objpfx)memusagestat: $(memusagestat-modules:%=$(objpfx)%.o) include ../Rules CFLAGS-mcheck-init.c = $(PIC-ccflag) +CFLAGS-malloc.c += -DMALLOC_DEBUG $(objpfx)libmcheck.a: $(objpfx)mcheck-init.o -rm -f $@ |