summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorazav <azav@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-06 13:35:15 +0000
committerazav <azav@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-06 13:35:15 +0000
commit07a250652705681a804ffb2704753d636e1d60eb (patch)
tree7e0d9836aae123d97d1b4dbcad554937a7a39739 /thread_pthread.c
parent71dd79212880ddf4f99451befde26737f0cefa2c (diff)
thread_pthread.c (native_thread_create) [__SYMBIAN32__]: reduced pthread stack size
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 3e368c6a6b..cb9511e000 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -465,7 +465,11 @@ native_thread_create(rb_thread_t *th)
}
else {
pthread_attr_t attr;
+#ifdef __SYMBIAN32__
+ size_t stack_size = 64 * 1024; /* 64KB: Let's be slightly more frugal on mobile platform */
+#else
size_t stack_size = 512 * 1024; /* 512KB */
+#endif
size_t space;
#ifdef PTHREAD_STACK_MIN
@@ -557,7 +561,7 @@ ubf_pthread_cond_signal(void *ptr)
pthread_cond_signal(&th->native_thread_data.sleep_cond);
}
-#ifndef __CYGWIN__
+#if !defined(__CYGWIN__) && !defined(__SYMBIAN32__)
static void
ubf_select_each(rb_thread_t *th)
{
@@ -757,7 +761,7 @@ thread_timer(void *dummy)
}
else rb_bug("thread_timer/timedwait: %d", err);
-#ifndef __CYGWIN__
+#if !defined(__CYGWIN__) && !defined(__SYMBIAN32__)
if (signal_thread_list_anchor.next) {
FGLOCK(&signal_thread_list_lock, {
struct signal_thread_list *list;