Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: base/threading/platform_thread_linux.cc

Issue 2471333003: NOSUBMIT: Reduce ASAN memory consumption on 32-bit Intel Chrome OS (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/sanitizers/sanitizer_options.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/threading/platform_thread.h" 5 #include "base/threading/platform_thread.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <sched.h> 8 #include <sched.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 149 }
150 } 150 }
151 #endif // !defined(OS_NACL) 151 #endif // !defined(OS_NACL)
152 152
153 void InitThreading() {} 153 void InitThreading() {}
154 154
155 void TerminateOnThread() {} 155 void TerminateOnThread() {}
156 156
157 size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) { 157 size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
158 #if !defined(THREAD_SANITIZER) 158 #if !defined(THREAD_SANITIZER)
159 return 0; 159 //JAMES force 4M
160 return 4 * (1 << 20);
160 #else 161 #else
161 // ThreadSanitizer bloats the stack heavily. Evidence has been that the 162 // ThreadSanitizer bloats the stack heavily. Evidence has been that the
162 // default stack size isn't enough for some browser tests. 163 // default stack size isn't enough for some browser tests.
163 return 2 * (1 << 23); // 2 times 8192K (the default stack size on Linux). 164 //JAMES force 4M
165 return 4 * (1 << 20);
166 // return 2 * (1 << 23); // 2 times 8192K (the default stack size on Linux).
164 #endif 167 #endif
165 } 168 }
166 169
167 } // namespace base 170 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | build/sanitizers/sanitizer_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698