Re: [committed] libstdc++: Add TSan annotations to std::atomic>

2022-09-14 Thread Jonathan Wakely via Gcc-patches
On Wed, 14 Sept 2022 at 23:25, Jonathan Wakely wrote: > > On Wed, 14 Sept 2022 at 23:05, Jonathan Wakely via Libstdc++ > wrote: > > > > Tested powerpc64le-linux, pushed to trunk. > > > > -- >8 -- > > > > This adds annotations to std::atomic> to enable TSan to > > understand the custom locking. Wit

Re: [committed] libstdc++: Add TSan annotations to std::atomic>

2022-09-14 Thread Jonathan Wakely via Gcc-patches
On Wed, 14 Sept 2022 at 23:05, Jonathan Wakely via Libstdc++ wrote: > > Tested powerpc64le-linux, pushed to trunk. > > -- >8 -- > > This adds annotations to std::atomic> to enable TSan to > understand the custom locking. Without this, TSan reports data races for > accesses to the _M_ptr member, ev

[committed] libstdc++: Add TSan annotations to std::atomic>

2022-09-14 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. -- >8 -- This adds annotations to std::atomic> to enable TSan to understand the custom locking. Without this, TSan reports data races for accesses to the _M_ptr member, even though those are correctly synchronized using atomic operations on the tagged po