From 73297345358248828dc9b4dc1e2e131afc793530 Mon Sep 17 00:00:00 2001
From: "aarya@google.com"
 <aarya@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Sat, 7 Jul 2012 08:27:23 +0000
Subject: Increase worker thread stack size for AddressSanitizer. This is
 especially required for debug builds, since ASAN uses a lot more stack and
 otherwise causes it to crash.

BUG=136189
Review URL: https://chromiumcodereview.appspot.com/10702116

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145627 0039d316-1c4b-4281-b951-d872f2087c98
---
 base/threading/worker_pool_posix.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/base/threading/worker_pool_posix.cc b/base/threading/worker_pool_posix.cc
index ee2fbe2..2ad3925 100644
--- a/base/threading/worker_pool_posix.cc
+++ b/base/threading/worker_pool_posix.cc
@@ -26,9 +26,14 @@ base::LazyInstance<ThreadLocalBoolean>::Leaky
     g_worker_pool_running_on_this_thread = LAZY_INSTANCE_INITIALIZER;
 
 const int kIdleSecondsBeforeExit = 10 * 60;
+
+#ifdef ADDRESS_SANITIZER
+const int kWorkerThreadStackSize = 256 * 1024;
+#else
 // A stack size of 64 KB is too small for the CERT_PKIXVerifyCert
 // function of NSS because of NSS bug 439169.
 const int kWorkerThreadStackSize = 128 * 1024;
+#endif
 
 class WorkerPoolImpl {
  public:
-- 
cgit v1.1