1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2007-08-19 03:35:39 +00:00
parent 9e5d0d861f
commit 98e7aa679a
3 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,8 @@
Sun Aug 19 12:32:39 2007 Koichi Sasada <ko1@atdot.net>
* insnhelper.ci (vm_callee_setup_arg): fix to mark enough VM stack.
[ruby-dev:31492]
Sat Aug 18 19:02:34 2007 Tanaka Akira <akr@fsij.org>
* test/ruby/test_yield.rb (TestYieldGen): relax array size check

View file

@ -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;
}
}

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-08-18"
#define RUBY_RELEASE_DATE "2007-08-19"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070818
#define RUBY_RELEASE_CODE 20070819
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 8
#define RUBY_RELEASE_DAY 18
#define RUBY_RELEASE_DAY 19
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];