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

Unified Diff: base/debug/sanitizer_options.cc

Issue 296173006: Link the contents of tools/valgrind/tsan_v2/suppressions.txt into TSan binaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the 80-column limit Created 6 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
« no previous file with comments | « base/debug/OWNERS ('k') | base/debug/tsan_suppressions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/sanitizer_options.cc
diff --git a/base/debug/sanitizer_options.cc b/base/debug/sanitizer_options.cc
index 1affdb23fec80d7e8a2d6d82ff5e2acc6788b290..53574539d255b821954e7781d66228627162942e 100644
--- a/base/debug/sanitizer_options.cc
+++ b/base/debug/sanitizer_options.cc
@@ -94,4 +94,16 @@ const char *__tsan_default_options() {
return kTsanDefaultOptions;
}
+extern "C" char kTSanDefaultSuppressions[];
+
+extern "C"
+__attribute__((no_sanitize_thread))
+__attribute__((visibility("default")))
+// The function isn't referenced from the executable itself. Make sure it isn't
+// stripped by the linker.
+__attribute__((used))
+const char *__tsan_default_suppressions() {
+ return kTSanDefaultSuppressions;
+}
+
#endif // THREAD_SANITIZER && OS_LINUX
« no previous file with comments | « base/debug/OWNERS ('k') | base/debug/tsan_suppressions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698