Re: [PATCH] Strengthen memory memory order for atomic::wait/notify

2022-02-01 Thread Thomas Rodgers via Gcc-patches
Tested x86_64-pc-linux-gnu, committed to master. Backported to GCC-11. On Sun, Jan 16, 2022 at 12:31 PM Jonathan Wakely wrote: > > > On Sun, 16 Jan 2022 at 01:48, Thomas Rodgers via Libstdc++ < > libstd...@gcc.gnu.org> wrote: > >> This patch updates the memory order of atomic accesses to the

Re: [PATCH] Strengthen memory memory order for atomic::wait/notify

2022-01-16 Thread Jonathan Wakely via Gcc-patches
On Sun, 16 Jan 2022 at 01:48, Thomas Rodgers via Libstdc++ < libstd...@gcc.gnu.org> wrote: > This patch updates the memory order of atomic accesses to the waiter's > count to match libc++'s usage. It should be backported to GCC11. > The commit subject line says "memory memory order", OK for

[PATCH] Strengthen memory memory order for atomic::wait/notify

2022-01-15 Thread Thomas Rodgers via Gcc-patches
Subject: [PATCH] Strengthen memory memory order for atomic::wait/notify This matches the memory order in libc++. libstdc++-v3/ChangeLog: * libstdc++-v3/include/bits/atomic_wait.h: Change memory order from Acquire/Release with relaxed loads to SeqCst+Release for accesses to the waiter's count