]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
Add adaptive elision to rwlocks
authorAndi Kleen <ak@linux.intel.com>
Mon, 31 Mar 2014 15:07:46 +0000 (08:07 -0700)
committerAndi Kleen <ak@linux.intel.com>
Fri, 13 Jun 2014 20:15:28 +0000 (13:15 -0700)
commit8491ed6d70b60e4c75cdcfde10ae759898547b08
treef26bd7e65ec2a860474297d5c8b87d49193ca4f2
parenta832bdd36203fcb37fa5ad25200ef3c1ae205efe
Add adaptive elision to rwlocks

This patch relies on the C version of the rwlocks posted earlier.
With C rwlocks it is very straight forward to do adaptive elision
using TSX. It is based on the infrastructure added earlier
for mutexes, but uses its own elision macros. The macros
are fairly general purpose and could be used for other
elision purposes too.

This version is much cleaner than the earlier assembler based
version, and in particular implements adaptation which makes
it safer.

I changed the behavior slightly to not require any changes
in the test suite and fully conform to all expected
behaviors (generally at the cost of not eliding in
various situations). In particular this means the timedlock
variants are not elided.  Nested trylock aborts.
23 files changed:
ChangeLog
nptl/pthread_rwlock_rdlock.c
nptl/pthread_rwlock_tryrdlock.c
nptl/pthread_rwlock_trywrlock.c
nptl/pthread_rwlock_unlock.c
nptl/pthread_rwlock_wrlock.c
nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
sysdeps/arm/nptl/bits/pthreadtypes.h
sysdeps/nptl/pthread.h
sysdeps/sh/nptl/bits/pthreadtypes.h
sysdeps/sparc/nptl/bits/pthreadtypes.h
sysdeps/tile/nptl/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
sysdeps/unix/sysv/linux/x86/elision-conf.c
sysdeps/x86/nptl/bits/pthreadtypes.h
sysdeps/x86/nptl/elide.h [new file with mode: 0644]