aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/nptl
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-10-28 18:31:24 -0200
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-10-28 19:13:21 -0200
commit739e14f9009ff91e4a8d01776e7269fc8cbd0293 (patch)
treeb8819e16088ba37dcc26c7cfa7f1ae486b7e474f /sysdeps/powerpc/nptl
parentce193f551ec21df85c934626a21730881484dcf0 (diff)
downloadglibc-739e14f9009ff91e4a8d01776e7269fc8cbd0293.tar
glibc-739e14f9009ff91e4a8d01776e7269fc8cbd0293.tar.gz
glibc-739e14f9009ff91e4a8d01776e7269fc8cbd0293.tar.bz2
glibc-739e14f9009ff91e4a8d01776e7269fc8cbd0293.zip
Document a behavior of an elided pthread_rwlock_unlock
Explain that pthread_rwlock_unlock may crash if called on a lock not held by the current thread.
Diffstat (limited to 'sysdeps/powerpc/nptl')
-rw-r--r--sysdeps/powerpc/nptl/elide.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/powerpc/nptl/elide.h b/sysdeps/powerpc/nptl/elide.h
index 77bd82ecba..835fd92968 100644
--- a/sysdeps/powerpc/nptl/elide.h
+++ b/sysdeps/powerpc/nptl/elide.h
@@ -102,6 +102,9 @@ __elide_unlock (int is_lock_free)
{
if (is_lock_free)
{
+ /* This code is expected to crash when trying to unlock a lock not
+ held by this thread. More information is available in the
+ __pthread_rwlock_unlock() implementation. */
__libc_tend (0);
return true;
}