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

Unified Diff: platform/thread_macos.cc

Issue 10180013: Changes to allow for -O2 compiles on macos in debug builds. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform/thread_macos.cc
===================================================================
--- platform/thread_macos.cc (revision 7051)
+++ platform/thread_macos.cc (working copy)
@@ -71,7 +71,12 @@
result = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
RETURN_ON_PTHREAD_FAILURE(result);
- result = pthread_attr_setstacksize(&attr, 128 * KB);
+#ifdef DEBUG
+ const int kStackSize = (256 * KB);
+#else
+ const int kStackSize = (128 * KB);
+#endif
+ result = pthread_attr_setstacksize(&attr, kStackSize);
RETURN_ON_PTHREAD_FAILURE(result);
ThreadStartData* data = new ThreadStartData(function, parameter);
« no previous file with comments | « no previous file | vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698