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

Unified Diff: third_party/WebKit/Source/wtf/AddressSanitizer.h

Issue 1892713003: Prepare for multiple ThreadHeaps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added NO_SANITIZE_THREAD Created 4 years, 8 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: third_party/WebKit/Source/wtf/AddressSanitizer.h
diff --git a/third_party/WebKit/Source/wtf/AddressSanitizer.h b/third_party/WebKit/Source/wtf/AddressSanitizer.h
index a01b9da1d56047ffaddee35b2de9ff9a6f968635..5bec7a4a1f04325ad2d1ddb7cd4a16f6af403f15 100644
--- a/third_party/WebKit/Source/wtf/AddressSanitizer.h
+++ b/third_party/WebKit/Source/wtf/AddressSanitizer.h
@@ -48,4 +48,10 @@
#define NO_SANITIZE_MEMORY
#endif
+#if defined(THREAD_SANITIZER) && (!OS(WIN) || COMPILER(CLANG))
+#define NO_SANITIZE_THREAD __attribute__((no_sanitize_thread))
+#else
+#define NO_SANITIZE_THREAD
+#endif
+
#endif // WTF_AddressSanitizer_h

Powered by Google App Engine
This is Rietveld 408576698