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

Zack Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 06:07:22 PST 2023


================
@@ -71,16 +71,54 @@ static void CheckUnwind() {
 }
 
 // -------------------------- Globals --------------------- {{{1
-static int asan_inited = 0;
-static int asan_init_is_running = 0;
+#if SANITIZER_WINDOWS
----------------
zacklj89 wrote:

I wasn't sure how the change would be viewed, so I added this for Windows only. If it seems benign, I'll remove the `#if SANITIZER_WINDOWS`

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


More information about the llvm-commits mailing list