This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Mutex: Use test and cmpxchg instead of cmpxchg while spinning
- From: Kemi Wang <kemi dot wang at intel dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Florian Weimer <fweimer at redhat dot com>, Rical Jason <rj at 2c3t dot io>, Carlos Donell <carlos at redhat dot com>, "H . J . Lu" <hjl dot tools at gmail dot com>, lawrencex dot stewart at intel dot com, Glibc alpha <libc-alpha at sourceware dot org>
- Cc: Dave Hansen <dave dot hansen at linux dot intel dot com>, Tim Chen <tim dot c dot chen at intel dot com>, Andi Kleen <andi dot kleen at intel dot com>, Ying Huang <ying dot huang at intel dot com>, Aaron Lu <aaron dot lu at intel dot com>, Lu Aubrey <aubrey dot li at intel dot com>, Kemi Wang <kemi dot wang at intel dot com>
- Date: Mon, 30 Jul 2018 08:42:48 +0800
- Subject: [PATCH] Mutex: Use test and cmpxchg instead of cmpxchg while spinning
Tested by build-many-glibcs.py
Kemi Wang (1):
Mutex: Use test and cmpxchg instead of cmpxchg while spinning
nptl/pthread_mutex_lock.c | 3 ++-
nptl/pthread_mutex_timedlock.c | 4 ++--
nptl/pthread_spinlock.h | 23 +++++++++++++++++++
sysdeps/unix/sysv/linux/x86/pthread_spinlock.h | 31 ++++++++++++++++++++++++++
4 files changed, 58 insertions(+), 3 deletions(-)
create mode 100644 nptl/pthread_spinlock.h
create mode 100644 sysdeps/unix/sysv/linux/x86/pthread_spinlock.h
--
2.7.4