aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/manager.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-20 08:12:32 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-20 08:12:32 +0000
commit58d2d09bde3578bd25d55df03e962764ba81bd13 (patch)
treea81e5d97ffe5a9b3be7ae44e18a314f78ffa880a /linuxthreads/manager.c
parent9a1eb38e4e9319036f37c1efbf5288a169e23324 (diff)
downloadglibc-58d2d09bde3578bd25d55df03e962764ba81bd13.zip
glibc-58d2d09bde3578bd25d55df03e962764ba81bd13.tar.gz
glibc-58d2d09bde3578bd25d55df03e962764ba81bd13.tar.bz2
Update.
* sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
Diffstat (limited to 'linuxthreads/manager.c')
-rw-r--r--linuxthreads/manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c
index 655c7d6..24be941 100644
--- a/linuxthreads/manager.c
+++ b/linuxthreads/manager.c
@@ -599,7 +599,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
int saved_errno = 0;
#ifdef USE_TLS
- new_thread = _dl_allocate_tls ();
+ new_thread = _dl_allocate_tls (NULL);
if (new_thread == NULL)
return EAGAIN;
#else
@@ -619,7 +619,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
if (sseg >= PTHREAD_THREADS_MAX)
{
#ifdef USE_TLS
- _dl_deallocate_tls (new_thread);
+ _dl_deallocate_tls (new_thread, true);
#endif
return EAGAIN;
}
@@ -803,7 +803,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
#endif
}
#ifdef USE_TLS
- _dl_deallocate_tls (new_thread);
+ _dl_deallocate_tls (new_thread, true);
#endif
__pthread_handles[sseg].h_descr = NULL;
__pthread_handles[sseg].h_bottom = NULL;
@@ -890,7 +890,7 @@ static void pthread_free(pthread_descr th)
munmap(guardaddr, stacksize + guardsize);
#ifdef USE_TLS
- _dl_deallocate_tls (th);
+ _dl_deallocate_tls (th, true);
#endif
}
}