summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-25 08:51:59 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-25 08:51:59 +0000
commitc2a734ea9946f88109b5ffc4507af66eed7f8cc8 (patch)
tree2c25fb5572db5fbf83ec63b0d9311c57536c7c39 /cont.c
parent2d888a8f331411751a9394a99c52d9b6928fe25e (diff)
* cont.c: rename FIBER_STACK_SIZE to FIBER_VM_STACK_SIZE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index d98208a714..cb0745c276 100644
--- a/cont.c
+++ b/cont.c
@@ -469,7 +469,7 @@ rb_cont_call(int argc, VALUE *argv, VALUE contval)
/* fiber */
/*********/
-#define FIBER_STACK_SIZE (4 * 1024)
+#define FIBER_VM_STACK_SIZE (4 * 1024)
VALUE
rb_fiber_new(VALUE (*func)(ANYARGS), VALUE obj)
@@ -489,7 +489,7 @@ rb_fiber_s_new(VALUE self)
cont->vm_stack = 0;
th->stack = 0;
- th->stack_size = FIBER_STACK_SIZE;
+ th->stack_size = FIBER_VM_STACK_SIZE;
th->stack = ALLOC_N(VALUE, th->stack_size);
th->cfp = (void *)(th->stack + th->stack_size);
@@ -650,6 +650,7 @@ fiber_switch(VALUE fib, int argc, VALUE *argv, int is_resume)
if (is_resume) {
cont->prev = rb_fiber_current();
}
+
cont->value = make_passing_arg(argc, argv);
if ((value = cont_store(cont)) == Qundef) {