1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
This commit is contained in:
Ulrich Drepper
2002-08-20 08:12:32 +00:00
parent 9a1eb38e4e
commit 58d2d09bde
5 changed files with 18 additions and 10 deletions

View File

@ -623,7 +623,8 @@ int __pthread_initialize_manager(void)
#ifdef USE_TLS
/* Allocate memory for the thread descriptor and the dtv. */
__pthread_handles[1].h_descr = manager_thread = tcb = _dl_allocate_tls ();
__pthread_handles[1].h_descr = manager_thread = tcb
= _dl_allocate_tls (NULL);
if (tcb == NULL) {
free(__pthread_manager_thread_bos);
__libc_close(manager_pipe[0]);