| Index: base/threading/platform_thread_linux.cc
|
| diff --git a/base/threading/platform_thread_linux.cc b/base/threading/platform_thread_linux.cc
|
| index 299ae2b927749e5fb0fb4818103ea0437a80b7a8..c7ff40cead0ccb736de0b9ae7396aea53f2aa3c6 100644
|
| --- a/base/threading/platform_thread_linux.cc
|
| +++ b/base/threading/platform_thread_linux.cc
|
| @@ -156,11 +156,14 @@ void TerminateOnThread() {}
|
|
|
| size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
|
| #if !defined(THREAD_SANITIZER)
|
| - return 0;
|
| + //JAMES force 4M
|
| + return 4 * (1 << 20);
|
| #else
|
| // ThreadSanitizer bloats the stack heavily. Evidence has been that the
|
| // default stack size isn't enough for some browser tests.
|
| - return 2 * (1 << 23); // 2 times 8192K (the default stack size on Linux).
|
| + //JAMES force 4M
|
| + return 4 * (1 << 20);
|
| + // return 2 * (1 << 23); // 2 times 8192K (the default stack size on Linux).
|
| #endif
|
| }
|
|
|
|
|