Chromium Code Reviews| 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..c8b657ed36ed0a3f7ba0bd0b01596eb00aa754ae 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 |
|
Alexander Potapenko
2014/01/27 14:54:51
Two spaces before the comment, please.
eugenis
2014/01/27 15:14:30
Done.
|
| +#endif |
| } |
| bool RegisterThreadUtils(JNIEnv* env) { |