summaryrefslogtreecommitdiffstats
path: root/base/threading
diff options
context:
space:
mode:
authorearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 22:09:14 +0000
committerearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 22:09:14 +0000
commit43972b97667e17ec8e9756a1ab168729f9a8b769 (patch)
tree9446f07053fbf692500aecf505db8a498cb30b5c /base/threading
parentbb2feeaf9edbabc242753118df4141e5e2c076e4 (diff)
downloadchromium_src-43972b97667e17ec8e9756a1ab168729f9a8b769.zip
chromium_src-43972b97667e17ec8e9756a1ab168729f9a8b769.tar.gz
chromium_src-43972b97667e17ec8e9756a1ab168729f9a8b769.tar.bz2
MemorySanitizer: adjust thread stack size to work around an MSan bug.
BUG=353687 TBR=thakis@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/196343027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading')
-rw-r--r--base/threading/platform_thread_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/threading/platform_thread_linux.cc b/base/threading/platform_thread_linux.cc
index 0c0ebcb..a4dfbf3 100644
--- a/base/threading/platform_thread_linux.cc
+++ b/base/threading/platform_thread_linux.cc
@@ -100,11 +100,12 @@ void InitOnThread() {}
void TerminateOnThread() {}
size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
-#if !defined(THREAD_SANITIZER)
+#if !defined(THREAD_SANITIZER) && !defined(MEMORY_SANITIZER)
return 0;
#else
// ThreadSanitizer bloats the stack heavily. Evidence has been that the
// default stack size isn't enough for some browser tests.
+ // MemorySanitizer needs this as a temporary fix for http://crbug.com/353687
return 2 * (1 << 23); // 2 times 8192K (the default stack size on Linux).
#endif
}