Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1499)

Unified Diff: Source/platform/heap/AddressSanitizer.h

Issue 1120943002: Various ASan exemptions to allow Oilpan pre-sweep poisoning of unmarkeds. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: avoid wtf/ => platform/ dependency. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/heap/AddressSanitizer.h
diff --git a/Source/platform/heap/AddressSanitizer.h b/Source/platform/heap/AddressSanitizer.h
index 88477f61c1c4992774b706e4a83d6cababd9b9cd..2cd6fcf69bb45e98e48b8ee4ec1d4966a6fca102 100644
--- a/Source/platform/heap/AddressSanitizer.h
+++ b/Source/platform/heap/AddressSanitizer.h
@@ -54,8 +54,14 @@
// handles all the code without falling back to CL.
#if defined(ADDRESS_SANITIZER) && (!OS(WIN) || COMPILER(CLANG))
#define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
+#if ENABLE(OILPAN)
+// TODO(Oilpan): a temporary annotation while lazy sweeping is phased in.
+// Remove the ENABLE(OILPAN) condition when lazy sweeping is globally enabled.
+#define NO_LAZY_SWEEP_SANITIZE_ADDRESS NO_SANITIZE_ADDRESS
+#endif
#else
#define NO_SANITIZE_ADDRESS
+#define NO_LAZY_SWEEP_SANITIZE_ADDRESS
#endif
const size_t asanMagic = 0xabefeed0;

Powered by Google App Engine
This is Rietveld 408576698