diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-04 20:03:37 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-04 20:03:37 +0200 |
commit | 6333a6014f32c7ced36ced610d5a5cecbafba6c3 (patch) | |
tree | 48a3cd9f10e8fb27ee36f76ad25d668bbebcbaac /nptl | |
parent | 2897b231a6b71ee17d47d3d63f1112b2641a476c (diff) | |
download | glibc-6333a6014f32c7ced36ced610d5a5cecbafba6c3.tar.gz glibc-6333a6014f32c7ced36ced610d5a5cecbafba6c3.tar.xz glibc-6333a6014f32c7ced36ced610d5a5cecbafba6c3.zip |
__call_tls_dtors: Use call_function_static_weak
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/pthread_create.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 1ac8862ed2..6a41d50109 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -446,10 +446,7 @@ start_thread (void *arg) } /* Call destructors for the thread_local TLS variables. */ -#ifndef SHARED - if (&__call_tls_dtors != NULL) -#endif - __call_tls_dtors (); + call_function_static_weak (__call_tls_dtors); /* Run the destructor for the thread-local data. */ __nptl_deallocate_tsd (); |