| Index: base/threading/platform_thread_android.cc
|
| diff --git a/base/threading/platform_thread_android.cc b/base/threading/platform_thread_android.cc
|
| index 28026350b66acbb03e09956f3a9f1f0e882a9908..0dbb1913d0e08af10fb86330a66dc75b41edd40f 100644
|
| --- a/base/threading/platform_thread_android.cc
|
| +++ b/base/threading/platform_thread_android.cc
|
| @@ -95,7 +95,13 @@ void TerminateOnThread() {
|
| }
|
|
|
| size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
|
| +#if !defined(ADDRESS_SANITIZER)
|
| return 0;
|
| +#else
|
| + // AddressSanitizer bloats the stack approximately 2x. Default stack size of
|
| + // 1Mb is not enough for some tests (see http://crbug.com/263749 for example).
|
| + return 2 * (1 << 20); // 2Mb
|
| +#endif
|
| }
|
|
|
| bool RegisterThreadUtils(JNIEnv* env) {
|
|
|