dvyukov wrote: > I found my changes introduced another deadlock Why wasn't it detected before by the internal deadlock detector? It should have been warned on any unit test that exercises that code. https://github.com/llvm/llvm-project/pull/113661