diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-10-04 16:31:43 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-10-04 16:31:43 -0700 |
commit | 9043e2288e8f61bf36b90f5790abf549782d1957 (patch) | |
tree | 71c186093ba4a1d1fe71ec63bb1901d54973946d /malloc | |
parent | f57f805541562734a40088b8be93e3bc9e86be54 (diff) | |
download | glibc-9043e2288e8f61bf36b90f5790abf549782d1957.zip glibc-9043e2288e8f61bf36b90f5790abf549782d1957.tar.gz glibc-9043e2288e8f61bf36b90f5790abf549782d1957.tar.bz2 |
Name space hygeine for madvise.
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/arena.c | 2 | ||||
-rw-r--r-- | malloc/malloc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/malloc/arena.c b/malloc/arena.c index b209e3b..eb9180e 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -634,7 +634,7 @@ shrink_heap(heap_info *h, long diff) h->mprotect_size = new_size; } else - madvise ((char *)h + new_size, diff, MADV_DONTNEED); + __madvise ((char *)h + new_size, diff, MADV_DONTNEED); /*fprintf(stderr, "shrink %p %08lx\n", h, new_size);*/ h->size = new_size; diff --git a/malloc/malloc.c b/malloc/malloc.c index 892bc64..3f0b6b1 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4450,7 +4450,7 @@ static int mtrim(mstate av, size_t pad) content. */ memset (paligned_mem, 0x89, size & ~psm1); #endif - madvise (paligned_mem, size & ~psm1, MADV_DONTNEED); + __madvise (paligned_mem, size & ~psm1, MADV_DONTNEED); result = 1; } |