https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817
--- Comment #5 from Yuxuan Shui <yshuiv7 at gmail dot com> --- (In reply to Richard Biener from comment #4) > it's been always that way - but yes, people repeatedly fall into this trap If there anything libstdc++, or maybe the middle man (Mesa in my case) can do, to improve the situation. Maybe if there is an API Mesa can call to "refresh" libstdc++'s memory about pthread?