From 8a727af925be63aa6ea0f5f90e16751fd541626b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 14 Apr 2016 09:18:30 +0200 Subject: malloc: Remove malloc hooks from fork handler The fork handler now runs so late that there is no risk anymore that other fork handlers in the same thread use malloc, so it is no longer necessary to install malloc hooks which made a subset of malloc functionality available to the thread that called fork. --- malloc/malloc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'malloc/malloc.c') diff --git a/malloc/malloc.c b/malloc/malloc.c index 7aad75a26d..ea97df2cb4 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1074,8 +1074,6 @@ static void* realloc_check(void* oldmem, size_t bytes, const void *caller); static void* memalign_check(size_t alignment, size_t bytes, const void *caller); -static void* malloc_atfork(size_t sz, const void *caller); -static void free_atfork(void* mem, const void *caller); /* ------------------ MMAP support ------------------ */ -- cgit 1.4.1