Skip to content

Commit

Permalink
nptl: Document crash due to incorrect use of locks
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Weimer committed Aug 20, 2015
1 parent 948e12a commit cd4e69e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 3 additions & 1 deletion sysdeps/x86/elide.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
({ \
Expand Down

0 comments on commit cd4e69e

Please sign in to comment.