diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-08 04:09:00 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-08 04:09:00 +0000 |
commit | 4ad2d02a49b0ec009599c3a2c8683bd45119792b (patch) | |
tree | b223b92e3b9a87be0dffb3c89a49bf5bcb70e000 | |
parent | b43b6cf71f4ce482d46fd60364b457afe2963078 (diff) | |
download | ruby-4ad2d02a49b0ec009599c3a2c8683bd45119792b.tar.gz |
* cont.c (FIBER_MACHINE_STACK_ALLOCATION_SIZE): Fiber stack size
don't need to keep multiple number of sizeof(VALUE).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | cont.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Jul 8 13:06:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * cont.c (FIBER_MACHINE_STACK_ALLOCATION_SIZE): Fiber stack size + don't need to keep multiple number of sizeof(VALUE). + Fri Jul 8 11:39:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * common.mk (sudo-precheck): true command is not standard on @@ -47,7 +47,7 @@ #define RB_PAGE_SIZE (pagesize) #define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1)) static long pagesize; -#define FIBER_MACHINE_STACK_ALLOCATION_SIZE (0x10000 / sizeof(VALUE)) +#define FIBER_MACHINE_STACK_ALLOCATION_SIZE (0x10000) #endif #define CAPTURE_JUST_VALID_VM_STACK 1 @@ -607,7 +607,7 @@ fiber_setcontext(rb_fiber_t *newfib, rb_fiber_t *oldfib) rb_thread_t *th = GET_THREAD(), *sth = &newfib->cont.saved_thread; if (newfib->status != RUNNING) { - fiber_initialize_machine_stack_context(newfib, FIBER_MACHINE_STACK_ALLOCATION_SIZE * sizeof(VALUE)); + fiber_initialize_machine_stack_context(newfib, FIBER_MACHINE_STACK_ALLOCATION_SIZE); } /* restore thread context */ |