[PATCH] malloc: Remove malloc hooks from fork handler
Florian Weimer
fweimer@redhat.com
Thu Mar 10 13:34:00 GMT 2016
On 02/10/2016 10:48 PM, Florian Weimer wrote:
> 2016-02-10 Florian Weimer <fweimer@redhat.com>
>
> Remove malloc hooks from fork handler. They are no longer needed
> because malloc runs right before fork, and no malloc calls from
> other fork handlers are possible anymore.
> * malloc/malloc.c (malloc_atfork, free_atfork): Remove
> declarations.
> * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
> (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
> (atfork_recursive_cntr): Remove.
> (__malloc_fork_lock_parent): Do not override malloc hooks and
> thread_arena.
> (__malloc_fork_unlock_parent): Do not restore malloc hooks and
> thread_arena.
> (__malloc_fork_unlock_child): Do not restore malloc hooks. Use
> thread_arena i
Ping?
Thanks,
Florian
More information about the Libc-alpha
mailing list