зеркало из https://github.com/github/ruby.git
* vm.c (invoke_block): merge 2 stack overflow checks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
cd84310864
Коммит
8394de7bfc
|
@ -1,3 +1,7 @@
|
|||
Tue Dec 18 21:09:23 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm.c (invoke_block): merge 2 stack overflow checks.
|
||||
|
||||
Tue Dec 18 20:58:35 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c, insnhelper.ci, insns.def, object.c, vm.c, vm.h:
|
||||
|
|
3
vm.c
3
vm.c
|
@ -550,8 +550,7 @@ invoke_block(rb_thread_t *th, rb_block_t *block, VALUE self, int argc, VALUE *ar
|
|||
|
||||
rb_vm_set_finish_env(th);
|
||||
|
||||
CHECK_STACK_OVERFLOW(th->cfp, argc);
|
||||
CHECK_STACK_OVERFLOW(th->cfp, iseq->stack_max);
|
||||
CHECK_STACK_OVERFLOW(th->cfp, argc + iseq->stack_max);
|
||||
|
||||
for (i=0; i<argc; i++) {
|
||||
th->cfp->sp[i] = argv[i];
|
||||
|
|
Загрузка…
Ссылка в новой задаче