diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | malloc/arena.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2016-04-14 Florian Weimer <fweimer@redhat.com> + * malloc/arena.c (__malloc_fork_lock_parent) + (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add + internal_function attribute. + +2016-04-14 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 not possible anymore. diff --git a/malloc/arena.c b/malloc/arena.c index 1c70b35..47715b6 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -139,6 +139,7 @@ int __malloc_initialized = -1; subsystem. */ void +internal_function __malloc_fork_lock_parent (void) { if (__malloc_initialized < 1) @@ -159,6 +160,7 @@ __malloc_fork_lock_parent (void) } void +internal_function __malloc_fork_unlock_parent (void) { if (__malloc_initialized < 1) @@ -175,6 +177,7 @@ __malloc_fork_unlock_parent (void) } void +internal_function __malloc_fork_unlock_child (void) { if (__malloc_initialized < 1) |