Project

General

Profile

« Previous | Next » 

Revision 34039009

Added by nobu (Nobuyoshi Nakada) over 10 years ago

eval_intern.h: refine stack overflow detection

  • eval_intern.h (TH_PUSH_TAG, TH_EXEC_TAG): refine stack overflow
    detection. chain local tag after setjmp() successed on it, because
    calling setjmp() also can overflow the stack.
    [ruby-dev:47804] [Bug #9109]
  • vm_eval.c (rb_catch_obj): now th->tag points previous tag until
    TH_EXEC_TAG().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e