aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps
AgeCommit message (Collapse)Author
2014-06-09Start cleaning up TLS initial value for pthread_create.Roland McGrath
2014-06-06Move NPTL public ABI headers for SH to sysdeps/sh/nptl/.Roland McGrath
2014-06-03Fixed pthread_spin_lock on sparc32/64 (bug 16882)Guo Yixuan
[BZ #16882] * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S (pthread_spin_lock): Branch out of spin loop to proper location. * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S (pthread_spin_lock): Likewise.
2014-06-02SH: Consolidate NPTL/non versions of vforkRoland McGrath
2014-05-28SH: Consolidate NPTL/non versions of cloneRoland McGrath
2014-05-27SH: Convert fork.c to arch-fork.hRoland McGrath
2014-05-27Remove second argument from TLS_INIT_TP macroAndreas Schwab
2014-05-26PowerPC: Move remaining nptl/sysdeps/unix/sysv/linux/powerpc/ files.Adhemerval Zanella
2014-05-26PowerPC: Move NPTL ABI headers to sysdeps.Adhemerval Zanella
2014-05-26PowerPC: Move powerpc64 timer_*.c out of nptl/Adhemerval Zanella
2014-05-26PowerPC: Consolidate NPTL/non versions of cloneAdhemerval Zanella
2014-05-26PowerPC: Consolidate NPTL/non versions of vforkAdhemerval Zanella
2014-05-16Split arch-fork.h from fork.hRoland McGrath
2014-05-14Move remaining files out of nptl/sysdeps/unix/sysv/linux/x86/.Roland McGrath
2014-05-14Move remaining nptl/sysdeps/unix/sysv/linux/i386/ files.Roland McGrath
2014-05-14Fix powerpc fork after i386 reorganization.Roland McGrath
2014-05-14i386: Remove useless pthread_spin_{init,unlock} wrapper files.Roland McGrath
2014-05-14Move remaining nptl/sysdeps/unix/sysv/linux/x86_64/ files.Roland McGrath
2014-05-14x86: Consolidate NPTL fork.Roland McGrath
2014-05-14Consolidate not-cancel.h files.Roland McGrath
2014-05-14Update s390 timer_*.c files for x86_64 file moves.Roland McGrath
2014-05-14x86_64: Remove useless pthread_spin_{init,unlock} wrapper files.Roland McGrath
2014-05-14Move x86_64 compat-timer.h out of nptl/Roland McGrath
2014-05-14Move x86_64 timer_*.c out of nptl/Roland McGrath
2014-05-14x86: Consolidate NPTL/non versions of cloneRoland McGrath
2014-05-14Move NPTL public ABI headers for x86 to sysdeps/x86/nptl/.Roland McGrath
2014-05-14x86: Consolidate NPTL/non versions of vforkRoland McGrath
2014-05-13Clean up __exit_thread.Roland McGrath
2014-05-09S/390: Port of lock elision to System/zDominik Vogt
Added support for TX lock elision of pthread mutexes on s390 and s390x. This may improve lock scaling of existing programs on TX capable systems. The lock elision code is only built with --enable-lock-elision=yes and then requires a GCC version supporting the TX builtins. With lock elision default mutexes are elided via __builtin_tbegin, if the cpu supports transactions. By default lock elision is not enabled and the elision code is not built.
2014-05-01Deconditionalize use of LLL_LOCK_INITIALIZER in bits/libc-lock.h.Roland McGrath
2014-04-22Include atomic.h in sem_wait.c and sem_trywait.cSiddhesh Poyarekar
2014-04-17PowerPC: Sync pthread_once with default implementationAdhemerval Zanella
This patch removes the arch specific powerpc implementation and instead uses the linux default one. Although the current powerpc implementation already constains the required memory barriers for correct initialization, the default implementation shows a better performance on newer chips.
2014-04-11Fixed and unified pthread_once.Torvald Riegel
[BZ #15215] This unifies various pthread_once architecture-specific implementations which were using the same algorithm with slightly different implementations. It also adds missing memory barriers that are required for correctness.
2014-04-09Move __PTHREAD_SPINS definition to architecture specific headerAdhemerval Zanella
This patch moves the __PTHREAD_SPINS definition to arch specific header since pthread_mutex_t layout is also arch specific. This leads to no need to defining __PTHREAD_MUTEX_HAVE_ELISION and thus removing of the undefined compiler warning.
2014-03-26Fix dwarf2 unwinding through futex functions.Andi Kleen
When profiling programs with lock problems with perf record -g dwarf, libunwind can currently not backtrace through the futex and unlock functions in pthread. This is because they use out of line sections, and those are not correctly described in dwarf2 (I believe needs dwarf3 or 4). This patch first removes the out of line sections. They only save a single jump, but cause a lot of pain. Then it converts the now inline lock code to use the now standard gas .cfi_* commands. With these changes libunwind/perf can backtrace through the futex functions now. Longer term it would be likely better to just use C futex() functions on x86 like all the other architectures. This would clean the code up even more.
2014-03-25PowerPC: Revert __PTHREAD_MUTEX_HAVE_ELISION changeAdhemerval Zanella
This patch revert 449282f2e0e850c29f6a9666058503d4734964f0.
2014-03-25PowerPC: Fix -Wundef warning for __PTHREAD_MUTEX_HAVE_ELISION.Adhemerval Zanella
2014-03-24S390: Fix -Wundef warning for __PTHREAD_MUTEX_HAVE_ELISION.Stefan Liebler
2014-03-17Revert "Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warning"Will Newton
This reverts commit 788bba368c2eaf8aa3fd2ca18d269395d6bc8afb.
2014-03-17Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warningWill Newton
ChangeLog: 2014-03-17 Will Newton <will.newton@linaro.org> * nptl/sysdeps/pthread/pthread.h: Check __PTHREAD_MUTEX_HAVE_ELISION is defined before testing its value.
2014-03-17Get rid of __LT_SPINLOCK_INITSiddhesh Poyarekar
We got rid of LinuxThreads in 2005, but we didn't remove __LT_SPINLOCK_INIT back then. Do it now. * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]: Remove.
2014-03-14Compile with -Wundef.Roland McGrath
2014-03-14Fix two stray cases using #ifdef vs #if for TLS_TCB_AT_TP.Roland McGrath
2014-02-10Use glibc_likely instead __builtin_expect.Ondřej Bílka
2014-02-05Fix tst-setgetname for Linux kernels < 2.6.33.Carlos O'Donell
Support for /proc/self/task/$tid/comm as added in Linux 2.6.33, therefore since the test tst-setgetname relies on this functionality to operate we must skip the test in kernels < 2.6.33. We wrap the checks with __ASSUME_PROC_PID_TASK_COMM such that in the future when we move arch_minimum_kernel to 2.6.33 we can remove this code.
2014-01-07S/390: Make jmp_buf extendible.Andreas Krebbel
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae
2013-12-12PowerPC: Add DSO and TAR fields to TLSAdhemerval Zanella
2013-12-12Add test case for pthread_[sg]etname_np.Carlos O'Donell
This commit adds a testcase for pthread_setname_np and pthread_getname_np. The testcase itself has four tests to validate that these functions work as expected. The test is only enabled for Linux since it requires access to an alternate method for validating the functions work.
2013-12-09Fix CFI annotations in pthread_cond_timedwait for i486+Andreas Schwab