]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 27 Feb 2002 09:29:04 +0000 (09:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 27 Feb 2002 09:29:04 +0000 (09:29 +0000)
2002-02-27  Ulrich Drepper  <drepper@redhat.com>

* pthread.c [USE_TLS] (thread_self_stack): Correct check for upper
stack limit.

linuxthreads/ChangeLog
linuxthreads/pthread.c

index 961ddf118b90f8fee6e8d634c25bca5b171787d1..01e4745e032ffcc824f49c04387a94db8f43c5e0 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * pthread.c [USE_TLS] (thread_self_stack): Correct check for upper
+       stack limit.
+
 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
 
        * attr.c (pthread_getattr_np): Don't take thread descriptor size
index 314360d477ed5c847d7b1eb0ffb76328167be96d..12ce38ba75ecf90517710ed2fe082c1f4c16dda0 100644 (file)
@@ -813,8 +813,14 @@ static pthread_descr thread_self_stack(void)
   if (sp >= __pthread_manager_thread_bos && sp < __pthread_manager_thread_tos)
     return manager_thread;
   h = __pthread_handles + 2;
+# ifdef USE_TLS
+  while (h->h_descr == NULL
+        || ! (sp <= (char *) h->h_descr->p_stackaddr && sp >= h->h_bottom))
+    h++;
+# else
   while (! (sp <= (char *) h->h_descr && sp >= h->h_bottom))
     h++;
+# endif
   return h->h_descr;
 }
 
This page took 0.047003 seconds and 5 git commands to generate.