about summary refs log tree commit diff
path: root/malloc/Makefile
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-05-07 15:30:57 +0000
committerJakub Jelinek <jakub@redhat.com>2007-05-07 15:30:57 +0000
commitc7fd336280f2d88be4a22303199323718c8c3a28 (patch)
tree5fa83737189b7e0acdd5ba025b633326386ed74f /malloc/Makefile
parent6780bc44e8b651cc67dbef2761fc92bdee46c45e (diff)
downloadglibc-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/Makefile1
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 $@