about summary refs log tree commit diff
path: root/nptl/sysdeps/unix
Commit message (Collapse)AuthorAgeFilesLines
* Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers2013-01-011-1/+1
|
* Add sparc implementation of lll_futex_timed_wait_bitsetDavid S. Miller2012-12-271-0/+13
| | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_timed_wait_bitset): New macro.
* [s390] Replace lll_futex_* assembly code with INTERNAL_SYSCALLSiddhesh Poyarekar2012-12-271-74/+31
|
* Fix some build warnings on s390xSiddhesh Poyarekar2012-12-081-2/+2
|
* Remove unused variable from powerpc sem_post.c.Joseph Myers2012-12-041-2/+2
|
* Remove unused variable from sem_post.c.Joseph Myers2012-11-211-1/+1
|
* [S390,PPC] Implement FUTEX_WAIT_BITSET for timedwait functionsSiddhesh Poyarekar2012-11-053-1/+48
| | | | | | | | | | | | | | Since the FUTEX_WAIT operation takes a relative timeout, the pthread_cond_timedwait and other timed function implementations have to get a relative timeout from the absolute timeout parameter it gets before it makes the futex syscall. This value is then converted back into an absolute timeout within the kernel. This is a waste and has hence been improved upon by a FUTEX_WAIT_BITSET operation (OR'd with FUTEX_CLOCK_REALTIME to make the kernel use the realtime clock instead of the default monotonic clock). This was implemented only in the x86 and sh assembly code and not in the C code. This patch implements support for FUTEX_WAIT_BITSET whenever available (since linux-2.6.29) for s390 and powerpc.
* Fix coding style in sparc lowlevellock.hDavid S. Miller2012-11-031-2/+2
| | | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Add missing spaces. (__cpu_relax): Likewise.
* Define a BUSY_WAIT_NOP for sparc.David S. Miller2012-10-285-0/+76
| | | | | | | | | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Define when we have v9 instructions available. * sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax to libpthread-routines.
* Adjust mutex lock in condvar_cleanup if we got it from requeue_piSiddhesh Poyarekar2012-10-164-4/+17
| | | | This completes the fix to bz #14652.
* Take lock in pthread_cond_wait cleanup handler only when neededSiddhesh Poyarekar2012-10-105-8/+65
| | | | | | | | | | [BZ #14652] When a thread waiting in pthread_cond_wait with a PI mutex is cancelled after it has returned successfully from the futex syscall but just before async cancellation is disabled, it enters its cancellation handler with the mutex held and simply calling a mutex_lock again will result in a deadlock. Hence, it is necessary to see if the thread owns the lock and try to lock it only if it doesn't.
* Unlock mutex before going back to waiting for PI mutexesSiddhesh Poyarekar2012-10-054-171/+156
| | | | | | | | | | [BZ #14417] A futex call with FUTEX_WAIT_REQUEUE_PI returns with the mutex locked on success. If such a successful thread is pipped to the cond_lock by another spuriously woken waiter, it could be sent back to wait on the futex with the mutex lock held, thus causing a deadlock. So it is necessary that the thread relinquishes the mutex before going back to sleep.
* Fix clone flag name in comment to CLONE_CHILD_CLEARTID.Siddhesh Poyarekar2012-10-026-6/+6
|
* Fix exception table for i386 pthread_cond_waitSiddhesh Poyarekar2012-10-012-2/+22
| | | | | | | | [BZ #14477] Add an additional entry in the exception table to jump to __condvar_w_cleanup2 instead of __condvar_w_cleanup for PI mutexes when %ebx contains the address of the futex instead of the condition variable.
* Fix bugs in powerpc pthread_once.Alan Modra2012-09-251-5/+16
| | | | | | | | | Ref gcc.gnu.org/bugzilla/show_bug.cgi?id=52839#c10 Release barriers are needed to ensure that any memory written by init_routine is seen by other threads before *once_control changes. In the case of clear_once_control we need to flush any partially written state.
* Remove __ASSUME_POSIX_CPU_TIMERS.Joseph Myers2012-09-011-51/+2
|
* Fix sem_post race (bug 14532).Joseph Myers2012-08-311-2/+2
|
* Make libio compile without _IO_MTSAFE_IO.Roland McGrath2012-08-171-2/+2
|
* Remove __ASSUME_POSIX_TIMERS.Joseph Myers2012-08-1610-523/+203
|
* Remove __ASSUME_TGKILL.Joseph Myers2012-08-083-40/+3
|
* Remove unused pseudo_end labelAndreas Schwab2012-07-253-8/+5
|
* SH: __lll_robust_timedlock_wait: Simplify CFI directives.Thomas Schwinge2012-06-231-6/+4
|
* Use x86-64 bits/pthreadtypes.h/semaphore.h for i386/x86-64H.J. Lu2012-05-306-211/+2
|
* Remove use of INTDEF/INTUSE in nptlAndreas Schwab2012-05-3015-70/+35
|
* SH: Add CFI directives.Chung-Lin Tang2012-05-281-5/+6
|
* SH: Add CFI directives.Chung-Lin Tang2012-05-2816-27/+350
|
* i386 port of the pthread SystemTap probesRayson Ho2012-05-258-12/+33
|
* Add systemtap static probe points in generic and x86_64 pthread code.Roland McGrath2012-05-258-27/+49
|
* Fix warnings on Linux/i686Andreas Jaeger2012-05-171-4/+2
| | | | | | Fixes: ../sysdeps/i386/dl-machine.h:336:30: warning: unused variable ‘refsym’ [-Wunused-variable] rtld.c:1435:3: warning: implicit declaration of function ‘_dl_discover_osversion’ [-Wimplicit-function-declaration]
* Use R*_LP to load pointer and operate on stackH.J. Lu2012-05-151-31/+32
|
* Use LP_OP(cmp) and RCX_LP on dep_mutex pointerH.J. Lu2012-05-151-4/+4
|
* Use LP_OP(op), LP_SIZE and ASM_ADDR in sem_wait.SH.J. Lu2012-05-151-6/+6
|
* se LP_OP(op), LP_SIZE and ASM_ADDR in sem_timedwait.SH.J. Lu2012-05-151-9/+9
|
* Use LP_OP(cmp) on NWAITERSH.J. Lu2012-05-151-1/+1
|
* Use LP_SIZE and ASM_ADDR in pthread_once.SH.J. Lu2012-05-151-3/+3
|
* Use LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDRH.J. Lu2012-05-151-20/+20
|
* Use LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDRH.J. Lu2012-05-151-24/+24
|
* Use LP_OP(cmp) and RCX_LP on dep_mutex pointerH.J. Lu2012-05-151-6/+6
|
* Use LP_OP(mov) and RDI_LP on pointerH.J. Lu2012-05-151-3/+3
|
* Use LP_SIZE and load timeout pointer into RDX_LPH.J. Lu2012-05-151-4/+4
|
* Allow a single-threaded program to cancel itselfSiddhesh Poyarekar2012-05-151-0/+3
| | | | | | | | | There is nothing in the POSIX specification to disallow a single-threaded program from cancelling itself, so we forcibly enable multiple_threads to allow the next available cancellation point in the thread to run. Also added additional tests to cover various cancellation scenarios.
* Add x32 pthread typesH.J. Lu2012-05-141-14/+27
|
* Check __x86_64__ for __cleanup_fct_attributeH.J. Lu2012-05-111-1/+1
|
* Use CFI statements instead of hand-coding .eh_frame.Chung-Lin Tang2012-05-094-422/+103
|
* Use __NR_futex to define SYS_futexH.J. Lu2012-03-191-1/+1
|
* Fix libc-lowlevellock.c sysdep finding more generically.David S. Miller2012-03-162-2/+1
| | | | | | | | | | nptl/ [BZ #13844] * sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..> instead of "...". * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: Delete, not needed.
* Add missing sparc32 NPTL file otherwise we use the wrong lowlevellock.c ↵David S. Miller2012-03-151-0/+1
| | | | | | | | | implementation. nptl/ [BZ #13844] * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.
* Update copyright year after my most recent changes.David S. Miller2012-03-081-1/+1
| | | | | | | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year. / * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update copyright year. * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
* Work around kernel rejecting valid absolute timestamps.Thomas Schwinge2012-03-081-2/+8
|
* Invalid timeouts in SH sem_timedwait.Thomas Schwinge2012-03-081-4/+5
| | | | We adjusted nwaiters even though this isn't necessary.