https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119796
--- Comment #8 from AlphaOmegaProgrammer <alpha.and.omega.programmer at gmail dot com> --- > So what about this untested patch? I've spent about an hour trying to find flaws in the idea, and I can't think of any. I applied the patch and it fixed the deadlock for me in my test code.