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

* eval_intern.h (CHECK_STACK_OVERFLOW): reserve frame size.

[ruby-dev:32485]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-12-09 06:00:56 +00:00
parent 3923d7f420
commit a44f38ff52
2 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,12 @@
Sun Dec 9 14:59:15 2007 Koichi Sasada <ko1@atdot.net>
* eval_intern.h (CHECK_STACK_OVERFLOW): reserve frame size.
[ruby-dev:32485]
Sun Dec 9 14:38:25 2007 Koichi Sasada <ko1@atdot.net>
* vm.c (rb_thread_mark): use rb_gc_mark_maybe() for
VM stack specified by mark_stack_len.
VM stack specified by mark_stack_len. [ruby-dev:32462]
* insnhelper.ci: clear vm stack extended by opt value.

View file

@ -187,7 +187,7 @@ char *strrchr _((const char *, const char));
}
#define CHECK_STACK_OVERFLOW(cfp, margin) do \
if (((VALUE *)(cfp)->sp) + (margin) >= ((VALUE *)cfp)) { \
if (((VALUE *)(cfp)->sp) + (margin) + sizeof(rb_control_frame_t) >= ((VALUE *)cfp)) { \
rb_exc_raise(sysstack_error); \
} \
while (0)