]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nptl: Document crash due to incorrect use of locks
authorFlorian Weimer <fweimer@redhat.com>
Thu, 20 Aug 2015 06:44:09 +0000 (08:44 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 20 Aug 2015 06:44:37 +0000 (08:44 +0200)
ChangeLog
sysdeps/x86/elide.h

index b3c98924661d9c622a3bf5d91568f28e18cd1bfd..c0f7f5d00884e7bc930f86adda120e2d141467e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-20  Florian Weimer  <fweimer@redhat.com>
+
+       * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
+       incorrect use.
+
 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #18370]
index 47e89cfc8da4f7f7f750bb89796835b416b5b98d..6e53288340201ef0aa57128fb14771e783a5ad3b 100644 (file)
@@ -93,7 +93,9 @@ elision_adapt(signed char *adapt_count, unsigned int status)
     ret;                                               \
     })
 
-/* Returns true if lock defined by IS_LOCK_FREE was elided.  */
+/* Returns true if lock defined by IS_LOCK_FREE was elided.  The call
+   to _xend crashes if the application incorrectly tries to unlock a
+   lock which has not been locked.  */
 
 #define ELIDE_UNLOCK(is_lock_free)             \
   ({                                           \