summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/x86/bits
AgeCommit message (Collapse)AuthorFilesLines
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae2-2/+2
2013-07-19Clean up whitespace in lock elision patches.Dominik Vogt1-1/+1
Signed-off-by: Carlos O'Donell <carlos@redhat.com>
2013-07-02Add elision to pthread_mutex_{try,timed,un}lockAndi Kleen1-2/+11
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-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers2-2/+2
2012-05-30Use x86-64 bits/pthreadtypes.h/semaphore.h for i386/x86-64H.J. Lu2-0/+280