]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 21 May 2004 16:19:16 +0000 (16:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 21 May 2004 16:19:16 +0000 (16:19 +0000)
2004-05-21  Ulrich Drepper  <drepper@redhat.com>

* idna.c (idna_to_unicode_4z4z): Fix test for failed memory allocation.
Patch by Simon Josefsson.

libidn/ChangeLog
nptl/ChangeLog
nptl/sysdeps/pthread/pthread_cond_wait.c

index f5bc21b28abb44ad30cefc6a1bf620434d1c53a5..5e2f6e17de48c99e8c99d79cd0bff86566584a5a 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-21  Ulrich Drepper  <drepper@redhat.com>
+
+       * idna.c (idna_to_unicode_4z4z): Fix test for failed memory allocation.
+       Patch by Simon Josefsson.
+
 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
 
        * stringprep.c (stringprep): Free memory if allocation failed.
index 592f73b095770e0fd5c55ec4ba6d8fffd6a0e200..5f1f61c088feb7ddb01332263ae0a11e99064be7 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Compare
+       __broadcast_seq with bc_seq after acquiring internal lock instead of
+       before it.
+
 2004-05-18  Jakub Jelinek  <jakub@redhat.com>
 
        * Makefile (.NOTPARALLEL): Only serialize make check/xcheck, not
index a05060a107ad2a29a10e28d70c88221e651617ab..128f5a2d99f8c75f26f71bac0fd5b6fbf4fec625 100644 (file)
@@ -143,13 +143,13 @@ __pthread_cond_wait (cond, mutex)
       /* Disable asynchronous cancellation.  */
       __pthread_disable_asynccancel (cbuffer.oldtype);
 
+      /* We are going to look at shared data again, so get the lock.  */
+      lll_mutex_lock (cond->__data.__lock);
+
       /* If a broadcast happened, we are done.  */
       if (cbuffer.bc_seq != cond->__data.__broadcast_seq)
        goto bc_out;
 
-      /* We are going to look at shared data again, so get the lock.  */
-      lll_mutex_lock (cond->__data.__lock);
-
       /* Check whether we are eligible for wakeup.  */
       val = cond->__data.__wakeup_seq;
     }