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

Unified Diff: content/child/child_thread.cc

Issue 837633008: Hook UBSAN, MSAN to exit handler(s) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a style nit in old code. Created 5 years, 11 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 | « content/browser/child_process_launcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index bd4d4efd30c65db190f598e485b8284beadbf19d..75fd6017e1830d5851d36491f53d38f091c75ce7 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -81,7 +81,8 @@ base::LazyInstance<base::ThreadLocalPointer<ChildThread> > g_lazy_tls =
// TODO(earthdok): Re-enable on CrOS http://crbug.com/360622
#if (defined(ADDRESS_SANITIZER) || defined(LEAK_SANITIZER) || \
- defined(THREAD_SANITIZER)) && !defined(OS_CHROMEOS)
+ defined(MEMORY_SANITIZER) || defined(THREAD_SANITIZER) || \
+ defined(UNDEFINED_SANITIZER)) && !defined(OS_CHROMEOS)
// A thread delegate that waits for |duration| and then exits the process with
// _exit(0).
class WaitAndExitDelegate : public base::PlatformThread::Delegate {
@@ -138,7 +139,8 @@ class SuicideOnChannelErrorFilter : public IPC::MessageFilter {
// here and kill the process.
// TODO(earthdok): Re-enable on CrOS http://crbug.com/360622
#if (defined(ADDRESS_SANITIZER) || defined(LEAK_SANITIZER) || \
- defined(THREAD_SANITIZER)) && !defined(OS_CHROMEOS)
+ defined(MEMORY_SANITIZER) || defined(THREAD_SANITIZER) || \
+ defined(UNDEFINED_SANITIZER)) && !defined(OS_CHROMEOS)
// Some sanitizer tools rely on exit handlers (e.g. to run leak detection,
// or dump code coverage data to disk). Instead of exiting the process
// immediately, we give it 60 seconds to run exit handlers.
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698