mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>
This commit is contained in:
@ -15,7 +15,7 @@ static __thread struct rpc_thread_variables *thread_rpc_vars
|
||||
/*
|
||||
* Task-variable destructor
|
||||
*/
|
||||
void __attribute__ ((section ("__libc_thread_freeres_fn")))
|
||||
void
|
||||
__rpc_thread_destroy (void)
|
||||
{
|
||||
struct rpc_thread_variables *tvp = thread_rpc_vars;
|
||||
@ -36,12 +36,8 @@ __rpc_thread_destroy (void)
|
||||
thread_rpc_vars = NULL;
|
||||
}
|
||||
}
|
||||
#ifdef _LIBC_REENTRANT
|
||||
text_set_element (__libc_thread_subfreeres, __rpc_thread_destroy);
|
||||
#endif
|
||||
text_set_element (__libc_subfreeres, __rpc_thread_destroy);
|
||||
|
||||
|
||||
/*
|
||||
* Initialize RPC multi-threaded operation
|
||||
*/
|
||||
|
Reference in New Issue
Block a user