about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2015-06-23 15:22:25 +0200
committerTorvald Riegel <triegel@redhat.com>2015-06-30 15:57:15 +0200
commit4eb984d3ab5641ce7992204756ac15a61f5f7181 (patch)
tree12603bae9d2582033a3186174d1379121e1ea642 /ChangeLog
parente02920bc029019443326eecaa7b267b78ff2892e (diff)
downloadglibc-4eb984d3ab5641ce7992204756ac15a61f5f7181.tar.gz
glibc-4eb984d3ab5641ce7992204756ac15a61f5f7181.tar.xz
glibc-4eb984d3ab5641ce7992204756ac15a61f5f7181.zip
Clean up BUSY_WAIT_NOP and atomic_delay.
This patch combines BUSY_WAIT_NOP and atomic_delay into a new
atomic_spin_nop function and adjusts all clients.  The new function is
put into atomic.h because what is best done in a spin loop is
architecture-specific, and atomics must be used for spinning.  The
function name is meant to tell users that this has no effect on
synchronization semantics but is a performance aid for spinning.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog23
1 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 41176b5fc8..0e22a702e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2015-06-30  Torvald Riegel  <triegel@redhat.com>
+
+	* sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
+	* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
+	Likewise.
+	* sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
+	atomic_spin_nop.
+	* sysdeps/x86_64/bits/atomic.h: Likewise.
+	* sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
+	to atomic_spin_nop and move ...
+	* sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
+	... here and ...
+	* sysdeps/sparc/sparc64/bits/atomic.h: ... here.
+	* nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
+	atomic_spin_nop instead of BUSY_WAIT_NOP.
+	* nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
+	Likewise.
+	* sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
+	* sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
+	(lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
+	* nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
+	instead of atomic_delay.
+
 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #18613]