[PATCH] Add and use new glibc-internal futex API in sparc code.
Torvald Riegel
triegel@redhat.com
Mon Jun 8 22:56:00 GMT 2015
This uses the futex API in the sparc-specific code. It also cleans up
EINTR handling in the sparc semaphore code in that it follows the return
code documentation of futex_wait.
This applies on top of the patch with the new glibc-internal futex API:
https://sourceware.org/ml/libc-alpha/2015-06/msg00284.html
Not tested at all, but this is supposed to mirror the changes applied to
the generic code.
Dave, OK to commit provided the generic patch is committed?
2015-06-08 Torvald Riegel <triegel@redhat.com>
* sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
Use futex wrappers with error checking.
* sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
Likewise.
* sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
* sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
* sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
* sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
(futex_wake): Likewise.
(sem_assume_only_signals_cause_futex_EINTR): Likewise.
(do_futex_wait): Use futex wrappers with error checking.
(__new_sem_wait_slow): Update EINTR handling.
* sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: futex-sparc.patch
Type: text/x-patch
Size: 10855 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150608/1a26f922/attachment.bin>
More information about the Libc-alpha
mailing list