diff options
author | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2016-10-28 18:31:24 -0200 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2016-10-28 19:13:21 -0200 |
commit | 739e14f9009ff91e4a8d01776e7269fc8cbd0293 (patch) | |
tree | b8819e16088ba37dcc26c7cfa7f1ae486b7e474f /sysdeps/powerpc | |
parent | ce193f551ec21df85c934626a21730881484dcf0 (diff) | |
download | glibc-739e14f9009ff91e4a8d01776e7269fc8cbd0293.tar.gz glibc-739e14f9009ff91e4a8d01776e7269fc8cbd0293.tar.xz 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')
-rw-r--r-- | sysdeps/powerpc/nptl/elide.h | 3 |
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; } |