summaryrefslogtreecommitdiffstats
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
commit6a31782077fd94227c51f064623dccd8bc2f3965 (patch)
tree7e0d9836aae123d97d1b4dbcad554937a7a39739
parentdafc803fc59d41ad43a5e3f50aaea4a9dfbfdae1 (diff)
downloadruby-6a31782077fd94227c51f064623dccd8bc2f3965.tar.gz
ruby-6a31782077fd94227c51f064623dccd8bc2f3965.tar.xz
ruby-6a31782077fd94227c51f064623dccd8bc2f3965.zip
thread_pthread.c (native_thread_create) [__SYMBIAN32__]: reduced pthread stack size
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--thread_pthread.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 3e368c6a6..cb9511e00 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;