From cd4e69ed3e4b2d51ebd3dfaa0730793cf913de77 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 20 Aug 2015 08:44:09 +0200 Subject: nptl: Document crash due to incorrect use of locks --- sysdeps/x86/elide.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps/x86') diff --git a/sysdeps/x86/elide.h b/sysdeps/x86/elide.h index 47e89cfc8d..6e53288340 100644 --- a/sysdeps/x86/elide.h +++ b/sysdeps/x86/elide.h @@ -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) \ ({ \ -- cgit v1.2.3