From 7abf72d755470f04e1e225a5bd518b770a61981a Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Tue, 24 Jul 2012 11:15:26 +0000 Subject: Don't set "unlimited" stacks on iOS Since iOS is a very memory-limited environment, a very large stack isn't desireable. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10796098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148080 0039d316-1c4b-4281-b951-d872f2087c98 --- base/threading/platform_thread_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/threading') diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc index 59162b9..94a687c 100644 --- a/base/threading/platform_thread_posix.cc +++ b/base/threading/platform_thread_posix.cc @@ -87,7 +87,7 @@ bool CreateThread(size_t stack_size, bool joinable, pthread_attr_setdetachstate(&attributes, PTHREAD_CREATE_DETACHED); } -#if defined(OS_MACOSX) +#if defined(OS_MACOSX) && !defined(OS_IOS) // The Mac OS X default for a pthread stack size is 512kB. // Libc-594.1.4/pthreads/pthread.c's pthread_attr_init uses // DEFAULT_STACK_SIZE for this purpose. @@ -116,7 +116,7 @@ bool CreateThread(size_t stack_size, bool joinable, static_cast(stack_rlimit.rlim_cur)); } } -#endif // OS_MACOSX +#endif // OS_MACOSX && !OS_IOS if (stack_size > 0) pthread_attr_setstacksize(&attributes, stack_size); -- cgit v1.1