summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraarya@google.com <aarya@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-07 08:27:23 +0000
committeraarya@google.com <aarya@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-07 08:27:23 +0000
commit73297345358248828dc9b4dc1e2e131afc793530 (patch)
tree2e5de8b1b1440b8f2dfc617a1098b7748250c993
parent057518d9a2782817dbc0e852d8e2f0523e4343d0 (diff)
downloadchromium_src-73297345358248828dc9b4dc1e2e131afc793530.zip
chromium_src-73297345358248828dc9b4dc1e2e131afc793530.tar.gz
chromium_src-73297345358248828dc9b4dc1e2e131afc793530.tar.bz2
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
-rw-r--r--base/threading/worker_pool_posix.cc5
1 files changed, 5 insertions, 0 deletions
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: