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 wai
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 trunk
0:49 -0800
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 wait