about summary refs log tree commit diff
path: root/linuxthreads/manager.c
diff options
context:
space:
mode:
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 655c7d64ab..24be94129b 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
     }
 }