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

Unified Diff: content/browser/renderer_host/render_sandbox_host_linux.cc

Issue 143403003: Let the process have more than one thread under ThreadSanitizer in RenderSandboxHostLinux::Init Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_sandbox_host_linux.cc
===================================================================
--- content/browser/renderer_host/render_sandbox_host_linux.cc (revision 247659)
+++ content/browser/renderer_host/render_sandbox_host_linux.cc (working copy)
@@ -709,10 +709,11 @@
childs_lifeline_fd_ = pipefds[1];
// We need to be monothreaded before we fork().
-#if !defined(TOOLKIT_GTK)
+#if !defined(TOOLKIT_GTK) && !defined(THREAD_SANITIZER)
// Exclude gtk port as TestSuite in base/tests/test_suite.cc is calling
// gtk_init.
- // TODO(oshima): Remove ifdef when above issues are resolved.
+ // TODO(oshima): Remove the TOOLKIT_GTK ifdef when above issues are resolved.
+ // ThreadSanitizer spawns its own background thread.
DCHECK_EQ(1, base::GetNumberOfThreads(base::GetCurrentProcessHandle()));
#endif
pid_ = fork();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698