[compiler-rt] [ASan][Windows] Synchronizing ASAN init on Windows (PR #71833)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 14:15:08 PST 2023


================
@@ -93,6 +97,11 @@ AsanThreadContext *GetThreadContextByTidLocked(u32 tid) {
 AsanThread *AsanThread::Create(const void *start_data, uptr data_size,
                                u32 parent_tid, StackTrace *stack,
                                bool detached) {
+#if SANITIZER_WINDOWS
----------------
vitalybuka wrote:

Looks like dead lock prone solution
Whoever is creator of this thread may wait to join this what, and prevent initialization happening

https://github.com/llvm/llvm-project/pull/71833


More information about the llvm-commits mailing list