summaryrefslogtreecommitdiff
path: root/insnhelper.ci
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-19 03:35:39 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-19 03:35:39 +0000
commit98e7aa679a65fc0ec8e476c52b7254d4d6d2350d (patch)
tree95666574a60a26847fa2d062d42ea9d67d491c0b /insnhelper.ci
parent9e5d0d861f1f082c0c8632e62aa018972cc533bb (diff)
* insnhelper.ci (vm_callee_setup_arg): fix to mark enough VM stack.
[ruby-dev:31492] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insnhelper.ci')
-rw-r--r--insnhelper.ci5
1 files changed, 2 insertions, 3 deletions
diff --git a/insnhelper.ci b/insnhelper.ci
index b65190812a..e1b6d79ae4 100644
--- a/insnhelper.ci
+++ b/insnhelper.ci
@@ -114,6 +114,7 @@ vm_callee_setup_arg(rb_thread_t *th, rb_iseq_t *iseq,
else {
VALUE * const dst = argv;
int opt_pc = 0;
+ th->mark_stack_len = iseq->arg_size;
/* mandatory */
if (argc < (m + iseq->arg_post_len)) { /* check with post arg */
@@ -176,9 +177,7 @@ vm_callee_setup_arg(rb_thread_t *th, rb_iseq_t *iseq,
if (blockptr->proc == 0) {
rb_proc_t *proc;
- th->mark_stack_len = orig_argc; /* for GC */
blockval = vm_make_proc(th, th->cfp, blockptr);
- th->mark_stack_len = 0;
GetProcPtr(blockval, proc);
*block = &proc->block;
@@ -190,7 +189,7 @@ vm_callee_setup_arg(rb_thread_t *th, rb_iseq_t *iseq,
dst[iseq->arg_block] = blockval; /* Proc or nil */
}
-
+ th->mark_stack_len = 0;
return opt_pc;
}
}