Skip to content

Commit

Permalink
* eval_intern.h (CHECK_STACK_OVERFLOW): reserve frame size.
Browse files Browse the repository at this point in the history
  [ruby-dev:32485]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Dec 9, 2007
1 parent 3923d7f commit a44f38f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Sun Dec 9 14:59:15 2007 Koichi Sasada <[email protected]>

* eval_intern.h (CHECK_STACK_OVERFLOW): reserve frame size.
[ruby-dev:32485]

Sun Dec 9 14:38:25 2007 Koichi Sasada <[email protected]>

* 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.

Expand Down
2 changes: 1 addition & 1 deletion eval_intern.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a44f38f

Please sign in to comment.