From 5a4a7abc5253321b092cc7455100197a9914a34b Mon Sep 17 00:00:00 2001 From: "glider@chromium.org" Date: Thu, 5 Apr 2012 07:11:12 +0000 Subject: Increase kShutdownDetectorThreadStackSize under AddressSanitizer to avoid hitting the roof. BUG=120623 Review URL: http://codereview.chromium.org/9965148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130850 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chrome_browser_main_posix.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/browser/chrome_browser_main_posix.cc b/chrome/browser/chrome_browser_main_posix.cc index 71285a1..20837a2 100644 --- a/chrome/browser/chrome_browser_main_posix.cc +++ b/chrome/browser/chrome_browser_main_posix.cc @@ -237,7 +237,13 @@ void ChromeBrowserMainPartsPosix::PostMainMessageLoopStart() { } else { g_shutdown_pipe_read_fd = pipefd[0]; g_shutdown_pipe_write_fd = pipefd[1]; +#if !defined(ADDRESS_SANITIZER) const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN; +#else + // ASan instrumentation bloats the stack, so we need to increase the stack + // size to avoid hitting the guard page. + const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4; +#endif // TODO(viettrungluu,willchan): crbug.com/29675 - This currently leaks, so // if you change this, you'll probably need to change the suppression. if (!base::PlatformThread::CreateNonJoinable( -- cgit v1.1