Index: platform/thread_linux.cc |
=================================================================== |
--- platform/thread_linux.cc (revision 8702) |
+++ platform/thread_linux.cc (working copy) |
@@ -87,7 +87,7 @@ |
result = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
RETURN_ON_PTHREAD_FAILURE(result); |
- result = pthread_attr_setstacksize(&attr, 64 * KB); |
+ result = pthread_attr_setstacksize(&attr, Thread::GetMaxStackSize()); |
RETURN_ON_PTHREAD_FAILURE(result); |
ThreadStartData* data = new ThreadStartData(function, parameter); |
@@ -129,6 +129,12 @@ |
} |
+intptr_t Thread::GetMaxStackSize() { |
+ const int kStackSize = (256 * KB); |
+ return kStackSize; |
+} |
+ |
+ |
Mutex::Mutex() { |
pthread_mutexattr_t attr; |
int result = pthread_mutexattr_init(&attr); |