[Bug libstdc++/125659] [16/17 Regression] ThreadSanitizer reports a false-positive data race for code synchronized with std::atomic::wait

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 15 12:18:28 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125659

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ah no, because atomic::wait will loop and block again on a spurious wake.


More information about the Gcc-bugs mailing list