mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 15:20:10 +00:00
(AIO_MISC_WAIT): Work around gcc being to clever and reloading the futex value where it shouldn't.
This commit is contained in:
parent
ca3d773e19
commit
04454efba2
@ -35,6 +35,7 @@
|
||||
|
||||
#define AIO_MISC_WAIT(result, futex, timeout, cancel) \
|
||||
do { \
|
||||
volatile int *futexaddr = &futex; \
|
||||
int oldval = futex; \
|
||||
\
|
||||
if (oldval != 0) \
|
||||
@ -48,11 +49,11 @@
|
||||
int status; \
|
||||
do \
|
||||
{ \
|
||||
status = lll_futex_timed_wait (&futex, oldval, timeout); \
|
||||
status = lll_futex_timed_wait (futexaddr, oldval, timeout); \
|
||||
if (status != -EWOULDBLOCK) \
|
||||
break; \
|
||||
\
|
||||
oldval = futex; \
|
||||
oldval = *futexaddr; \
|
||||
} \
|
||||
while (oldval != 0); \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user