0
0
mirror of https://gcc.gnu.org/git/gcc.git synced 2025-01-01 16:34:06 +08:00
gcc/libstdc++-v3/testsuite/30_threads
Jonathan Wakely ad9cbcee54 libstdc++: Fix handling of futex wake [PR 97936]
The __platform_wait function is supposed to wait until *addr != old.
The futex syscall checks the initial value and returns EAGAIN if *addr
!= old is already true, which should cause __platform_wait to return.
Instead it loops and keeps doing a futex wait, which keeps returning
EAGAIN.

libstdc++-v3/ChangeLog:

	PR libstdc++/97936
	* include/bits/atomic_wait.h (__platform_wait): Return if futex
	sets EAGAIN.
	* testsuite/30_threads/latch/3.cc: Re-enable test.
	* testsuite/30_threads/semaphore/try_acquire_until.cc: Likewise.
2020-11-25 10:31:55 +00:00
..
async libstdc++: Add missing header to some tests 2020-11-19 16:17:33 +00:00
call_once libstdc++: Rewrite std::call_once to use futexes [PR 66146] 2020-11-03 18:44:49 +00:00
condition_variable libstdc++: Fix custom clock in test 2020-10-22 23:14:13 +01:00
condition_variable_any Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
future libstdc++: Add missing header to some tests 2020-11-19 16:17:33 +00:00
headers libstdc++: Use c++NN_only effective target to tests 2020-07-31 19:58:02 +01:00
jthread libstdc++: Disable failing tests [PR 97936] 2020-11-24 23:41:28 +00:00
latch libstdc++: Fix handling of futex wake [PR 97936] 2020-11-25 10:31:55 +00:00
lock Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
lock_guard Update copyright years. 2020-01-01 12:51:42 +01:00
mutex Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
packaged_task libstdc++: Fix 30_threads/packaged_task/cons/alloc.cc regression 2020-08-24 16:07:12 +01:00
promise libstdc++: Adjust static assertions in futures and promises [LWG 3466] 2020-08-25 15:52:57 +01:00
recursive_mutex Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
recursive_timed_mutex Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
scoped_lock Update copyright years. 2020-01-01 12:51:42 +01:00
semaphore libstdc++: Fix handling of futex wake [PR 97936] 2020-11-25 10:31:55 +00:00
shared_future libstdc++: Adjust static assertions in futures and promises [LWG 3466] 2020-08-25 15:52:57 +01:00
shared_lock Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
shared_mutex Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
shared_timed_mutex Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
stop_token libstdc++: Update value of __cpp_lib_jthread macro 2020-04-22 22:54:34 +01:00
this_thread libstdc++: Avoid calling undefined __gthread_self weak symbol [PR 95989] 2020-11-19 21:07:06 +00:00
thread Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
timed_mutex Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
try_lock Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00
unique_lock Fix libstdc++ testsuite to handle VxWorks gthreads implementation 2020-08-23 23:18:48 -03:00