about summary refs log tree commit diff
path: root/sysdeps/nptl/lowlevellock-futex.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-02-04 15:00:20 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-02-04 15:00:20 +0100
commitc4ad832276f4dadfa40904109b26a521468f66bc (patch)
treee10f9d2f3beff3457f57c5cdabc2dafd9e283041 /sysdeps/nptl/lowlevellock-futex.h
parent5d5d71b898b35331f68b582a590bb27d3eb701e7 (diff)
downloadglibc-c4ad832276f4dadfa40904109b26a521468f66bc.tar.gz
glibc-c4ad832276f4dadfa40904109b26a521468f66bc.tar.xz
glibc-c4ad832276f4dadfa40904109b26a521468f66bc.zip
nptl: Remove private futex optimization [BZ #27304]
It is effectively used, unexcept for pthread_cond_destroy, where we do
not want it; see bug 27304.  The internal locks do not support a
process-shared mode.

This fixes commit dc6cfdc934db9997c33728082d63552b9eee4563 ("nptl:
Move pthread_cond_destroy implementation into libc").

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/nptl/lowlevellock-futex.h')
-rw-r--r--sysdeps/nptl/lowlevellock-futex.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/sysdeps/nptl/lowlevellock-futex.h b/sysdeps/nptl/lowlevellock-futex.h
index ecb729da6b..ca96397a4a 100644
--- a/sysdeps/nptl/lowlevellock-futex.h
+++ b/sysdeps/nptl/lowlevellock-futex.h
@@ -50,20 +50,8 @@
 #define LLL_SHARED	FUTEX_PRIVATE_FLAG
 
 #ifndef __ASSEMBLER__
-
-# if IS_IN (libc) || IS_IN (rtld)
-/* In libc.so or ld.so all futexes are private.  */
-#  define __lll_private_flag(fl, private)			\
-  ({								\
-    /* Prevent warnings in callers of this macro.  */		\
-    int __lll_private_flag_priv __attribute__ ((unused));	\
-    __lll_private_flag_priv = (private);			\
-    ((fl) | FUTEX_PRIVATE_FLAG);				\
-  })
-# else
-#  define __lll_private_flag(fl, private) \
+# define __lll_private_flag(fl, private) \
   (((fl) | FUTEX_PRIVATE_FLAG) ^ (private))
-# endif
 
 # define lll_futex_syscall(nargs, futexp, op, ...)                      \
   ({                                                                    \