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

ruby-changes:23643

From: kosaki <ko1@a...>
Date: Fri, 18 May 2012 17:33:09 +0900 (JST)
Subject: [ruby-changes:23643] kosaki:r35694 (trunk): * cont.c: bump up fiber machine stack size when running on 64bit

kosaki	2012-05-18 17:32:56 +0900 (Fri, 18 May 2012)

  New Revision: 35694

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

  Log:
    * cont.c: bump up fiber machine stack size when running on 64bit
      arch. [Bug #6344] [ruby-dev:45554]

  Modified files:
    trunk/ChangeLog
    trunk/cont.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35693)
+++ ChangeLog	(revision 35694)
@@ -1,3 +1,8 @@
+Fri May 18 17:25:33 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* cont.c: bump up fiber machine stack size when running on 64bit
+	  arch. [Bug #6344] [ruby-dev:45554]
+
 Fri May 18 15:20:56 2012  NARUSE, Yui  <naruse@r...>
 
 	* lib/uri/generic.rb (URI::Generic.build): duplicate args before adding
Index: cont.c
===================================================================
--- cont.c	(revision 35693)
+++ cont.c	(revision 35694)
@@ -47,9 +47,14 @@
 #define RB_PAGE_SIZE (pagesize)
 #define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))
 static long pagesize;
-#define FIBER_MACHINE_STACK_ALLOCATION_SIZE  (0x10000)
-#endif
 
+ #if SIZEOF_VOIDP==8
+  #define FIBER_MACHINE_STACK_ALLOCATION_SIZE  (0x100000)
+ #else
+  #define FIBER_MACHINE_STACK_ALLOCATION_SIZE  (0x10000)
+ #endif
+#endif /*FIBER_USE_NATIVE*/
+
 #define CAPTURE_JUST_VALID_VM_STACK 1
 
 enum context_type {

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

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