[PATCH] [asan] Implement delayed activation of AddressSanitizer

Alexander Potapenko glider at google.com
Wed Jan 15 05:31:02 PST 2014


  I'm a bit concerned about changing the flags at activation time while someone else might be reading them.


================
Comment at: lib/asan/asan_activation.cc:30
@@ +29,3 @@
+void AsanStartDeactivated() {
+  VReport(1, "Deactivating asan\n");
+  internal_memcpy(&asan_deactivated_flags.flags, flags(), sizeof(*flags()));
----------------
s/asan/ASan here and below.


http://llvm-reviews.chandlerc.com/D2553



More information about the llvm-commits mailing list