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

Unified Diff: base/compiler_specific.h

Issue 2495413002: Fix false-positive ASAN detection with the stack profiler on win64 (Closed)
Patch Set: wittman comments Created 4 years, 1 month 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
« no previous file with comments | « no previous file | base/profiler/native_stack_sampler_win.cc » ('j') | base/profiler/native_stack_sampler_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/compiler_specific.h
diff --git a/base/compiler_specific.h b/base/compiler_specific.h
index bb4c52be45e298b31c73566f8b927445a7a952f4..46dc15a3cabe27f062c0f7b0e10af44ca862f157 100644
--- a/base/compiler_specific.h
+++ b/base/compiler_specific.h
@@ -157,6 +157,16 @@
// If available, it would look like:
// __attribute__((format(wprintf, format_param, dots_param)))
+// Sanitizers annotations.
+#if defined(__has_attribute)
+#if __has_attribute(no_sanitize)
+#define NO_SANITIZE(what) __attribute__((no_sanitize(what)))
+#endif
+#endif
+#if !defined(NO_SANITIZE)
+#define NO_SANITIZE(what)
+#endif
+
// MemorySanitizer annotations.
#if defined(MEMORY_SANITIZER) && !defined(OS_NACL)
#include <sanitizer/msan_interface.h>
« no previous file with comments | « no previous file | base/profiler/native_stack_sampler_win.cc » ('j') | base/profiler/native_stack_sampler_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698