[前][次][番号順一覧][スレッド一覧]

ruby-changes:10543

From: azav <ko1@a...>
Date: Fri, 6 Feb 2009 22:35:20 +0900 (JST)
Subject: [ruby-changes:10543] Ruby:r22097 (trunk): thread_pthread.c (native_thread_create) [__SYMBIAN32__]: reduced pthread stack size

azav	2009-02-06 22:35:15 +0900 (Fri, 06 Feb 2009)

  New Revision: 22097

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22097

  Log:
    thread_pthread.c (native_thread_create) [__SYMBIAN32__]: reduced pthread stack size

  Modified files:
    trunk/thread_pthread.c

Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 22096)
+++ thread_pthread.c	(revision 22097)
@@ -465,7 +465,11 @@
     }
     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 @@
     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 @@
 	}
 	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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]