glibc/nptl/sysdeps/unix/sysv/linux
Andi Kleen e8c659d74e Add elision to pthread_mutex_{try,timed,un}lock
Add elision paths to the basic mutex locks.

The normal path has a check for RTM and upgrades the lock
to RTM when available. Trylocks cannot automatically upgrade,
so they check for elision every time.

We use a 4 byte value in the mutex to store the lock
elision adaptation state. This is separate from the adaptive
spin state and uses a separate field.

Condition variables currently do not support elision.

Recursive mutexes and condition variables may be supported at some point,
but are not in the current implementation. Also "trylock" will
not automatically enable elision unless some other lock call
has been already called on the lock.

This version does not use IFUNC, so it means every lock has one
additional check for elision. Benchmarking showed the overhead
to be negligible.
2013-07-02 08:46:55 -07:00
..
bits
i386 Add the low level infrastructure for pthreads lock elision with TSX 2013-07-02 08:46:54 -07:00
powerpc Remove trailing whitespace in nptl. 2013-06-06 12:06:15 +00:00
s390 FUTEX_*_REQUEUE_PI support for non-x86 code 2013-02-18 16:07:10 +05:30
sh Remove trailing whitespace in nptl. 2013-06-06 12:06:15 +00:00
sparc Remove trailing whitespace in nptl. 2013-06-06 12:06:15 +00:00
x86 Add elision to pthread_mutex_{try,timed,un}lock 2013-07-02 08:46:55 -07:00
x86_64 Add the low level infrastructure for pthreads lock elision with TSX 2013-07-02 08:46:54 -07:00
Implies
Makefile
Versions
aio_misc.h
allocrtsig.c
createthread.c
fork.c nptl: Fix comment typo in fork.c. 2013-02-21 09:36:43 -05:00
fork.h
getpid.c
internaltypes.h
jmp-unwind.c
kernel-posix-timers.h
libc-lowlevellock.c
libc_multiple_threads.c
libc_pthread_init.c
lowlevelbarrier.sym
lowlevelcond.sym
lowlevellock.c Include atomic.h in generic lowlevellock.c. 2013-03-12 23:27:24 -04:00
lowlevelrobustlock.c
lowlevelrobustlock.sym
lowlevelrwlock.sym
mq_notify.c
pt-fork.c
pt-raise.c
pthread-pi-defines.sym
pthread_attr_getaffinity.c Avoid access beyond memory bounds in pthread_attr_getaffinity_np 2013-06-14 01:20:06 +05:30
pthread_attr_setaffinity.c Consolidate pthread_attr value validation 2013-04-22 10:28:31 +05:30
pthread_getaffinity.c
pthread_getcpuclockid.c
pthread_getname.c
pthread_kill.c
pthread_mutex_cond_lock.c Add elision to pthread_mutex_{try,timed,un}lock 2013-07-02 08:46:55 -07:00
pthread_setaffinity.c
pthread_setname.c
pthread_sigqueue.c
pthread_yield.c
raise.c
register-atfork.c
rtld-lowlevel.h
sem_post.c sem_post.c: Include atomic.h. 2013-04-07 16:13:02 -04:00
sem_timedwait.c
sem_trywait.c
sem_wait.c
sigtimedwait.c
sigwait.c
sigwaitinfo.c
sleep.c
smp.h
structsem.sym
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_routines.c
timer_settime.c
unregister-atfork.c
unwindbuf.sym