diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-14 07:46:11 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-14 07:46:11 +0000 |
commit | c50afaa1c94c150222d684fbc7fc8b79aa62e0c2 (patch) | |
tree | a18bdaf152fc1b05bec55d70e07a8eaca827ae01 /thread.c | |
parent | 3eb7a6eb0b4466aea4b50043d73e84c85a621f26 (diff) | |
download | ruby-c50afaa1c94c150222d684fbc7fc8b79aa62e0c2.tar.gz |
disable rewind hooks.
* vm.c (hook_before_rewind): skip rewind hooks if err is SystemStackError
because rewind hooks can cause stack overflow again and again.
* thread.c (ruby_thread_stack_overflow): do not disable all hooks.
Additionally, clearing ruby_vm_event_flags is not suitable way
to disable hooks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -2169,7 +2169,6 @@ NORETURN(void ruby_thread_stack_overflow(rb_thread_t *th)); void ruby_thread_stack_overflow(rb_thread_t *th) { - ruby_vm_event_flags = 0; th->raised_flag = 0; #ifdef USE_SIGALTSTACK if (!rb_threadptr_during_gc(th)) { |