krytarowski marked 7 inline comments as done. krytarowski added a comment. This approach appears to be stable for TSan/NetBSD, no single race or misbehavior has been observed so far. Repository: rL LLVM https://reviews.llvm.org/D40294