diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 11:15:26 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 11:15:26 +0000 |
commit | 7abf72d755470f04e1e225a5bd518b770a61981a (patch) | |
tree | 2892bb3d7e17b357e308569c0927c1cedba11772 /base/threading | |
parent | e6fe61619c1faf7b1de6a4df9cbe60818c9f4dee (diff) | |
download | chromium_src-7abf72d755470f04e1e225a5bd518b770a61981a.zip chromium_src-7abf72d755470f04e1e225a5bd518b770a61981a.tar.gz chromium_src-7abf72d755470f04e1e225a5bd518b770a61981a.tar.bz2 |
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
Diffstat (limited to 'base/threading')
-rw-r--r-- | base/threading/platform_thread_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<size_t>(stack_rlimit.rlim_cur)); } } -#endif // OS_MACOSX +#endif // OS_MACOSX && !OS_IOS if (stack_size > 0) pthread_attr_setstacksize(&attributes, stack_size); |