[ruby-cvs:53722] usa:r46576 (ruby_2_0_0): merge revision(s) 43748, 45947, 45951: [Backport #9739]

usa at ruby-lang.org usa at ruby-lang.org
Fri Jun 27 17:03:12 JST 2014


usa	2014-06-27 17:03:11 +0900 (Fri, 27 Jun 2014)

  New Revision: 46576

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46576

  Log:
    merge revision(s) 43748,45947,45951: [Backport #9739]
    
    * eval_intern.h (SAVE_ROOT_JMPBUF): workaround for the failure of
      test/ruby/test_exception.rb on Windows.
      wrap by __try and __exception statements on mswin to raise SIGSEGV
      when EXCEPTION_STACK_OVERFLOW is occurred, because MSVCRT doesn't
      handle the exception.
      however, (1) mingw-gcc doesn't support __try and __exception
      statements, and (2) we cannot retry SystemStackError after this
      change yet (maybe crashed) because SEH and longjmp() are too
      uncongenial.
    
    * signal.c (check_stack_overflow, CHECK_STACK_OVERFLOW): now defined on
      Windows, too.
    
    * thread_win32.c (ruby_stack_overflowed_p): ditto.
    
    * thread_win32.c (rb_w32_stack_overflow_handler): use Structured
      Exception Handling by Addvectoredexceptionhandler() for machine
      stack overflow on mingw.
      This would be equivalent to the handling using __try and __exept
      on mswin introduced by r43748.
      Exception Handling by AddVectoredExceptionHandler() for machine
      This would be equivalent to the handling using __try and __except

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/eval_intern.h
    branches/ruby_2_0_0/signal.c
    branches/ruby_2_0_0/thread_win32.c
    branches/ruby_2_0_0/version.h


More information about the ruby-cvs mailing list