[compiler-rt] [asan][Windows] Synchronizing ASAN init on Windows (PR #74086)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 15:46:00 PST 2023


================
@@ -93,6 +97,12 @@ 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:

This block can be moved before `AsanThread *t = AsanThread::Create(params, current_tid, &stack, detached);` in `INTERCEPTOR_WINAPI(HANDLE, CreateThread`

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


More information about the llvm-commits mailing list