diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-10 10:31:41 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-10 10:31:41 +0200 |
commit | 321789f61aa93c14390535aa3cf01846633cd022 (patch) | |
tree | fe2687c3058b23379918e700a7bfec82da2f4cd0 /nptl/allocatestack.c | |
parent | d6163dfd3831cf48b69f430f37b4c099059a9db5 (diff) | |
download | glibc-321789f61aa93c14390535aa3cf01846633cd022.tar glibc-321789f61aa93c14390535aa3cf01846633cd022.tar.gz glibc-321789f61aa93c14390535aa3cf01846633cd022.tar.bz2 glibc-321789f61aa93c14390535aa3cf01846633cd022.zip |
nptl: Export __libc_multiple_threads from libc as an internal symbol
This allows the elimination of the __libc_multiple_threads_ptr
variable in libpthread and its initialization procedure.
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 8aaba088b1..059786192e 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -477,7 +477,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, /* This is at least the second thread. */ pd->header.multiple_threads = 1; #ifndef TLS_MULTIPLE_THREADS_IN_TCB - __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; + __pthread_multiple_threads = __libc_multiple_threads = 1; #endif #ifdef NEED_DL_SYSINFO @@ -598,7 +598,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, /* This is at least the second thread. */ pd->header.multiple_threads = 1; #ifndef TLS_MULTIPLE_THREADS_IN_TCB - __pthread_multiple_threads = *__libc_multiple_threads_ptr = 1; + __pthread_multiple_threads = __libc_multiple_threads = 1; #endif #ifdef NEED_DL_SYSINFO |