diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-06-26 15:13:54 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-06-26 15:27:12 +0200 |
commit | 124e025864bb39732c71fc60c1443d5680881a0a (patch) | |
tree | 2af69c84acc461764f9b8873089b3277b22725c0 /malloc/malloc-internal.h | |
parent | sunrpc: Remove always-defined _RPC_THREAD_SAFE_ macro (diff) | |
download | glibc-124e025864bb39732c71fc60c1443d5680881a0a.tar.gz glibc-124e025864bb39732c71fc60c1443d5680881a0a.tar.bz2 glibc-124e025864bb39732c71fc60c1443d5680881a0a.zip |
Run thread shutdown functions in an explicit order
This removes the __libc_thread_subfreeres hook in favor of explict
calls.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc/malloc-internal.h')
-rw-r--r-- | malloc/malloc-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/malloc/malloc-internal.h b/malloc/malloc-internal.h index ad054508ee..9cee0fb2d7 100644 --- a/malloc/malloc-internal.h +++ b/malloc/malloc-internal.h @@ -71,6 +71,9 @@ void __malloc_fork_unlock_parent (void) attribute_hidden; /* Called in the child process after a fork. */ void __malloc_fork_unlock_child (void) attribute_hidden; +/* Called as part of the thread shutdown sequence. */ +void __malloc_arena_thread_freeres (void) attribute_hidden; + /* Set *RESULT to LEFT * RIGHT. Return true if the multiplication overflowed. */ static inline bool |