summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-14 07:46:11 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-14 07:46:11 +0000
commitc50afaa1c94c150222d684fbc7fc8b79aa62e0c2 (patch)
treea18bdaf152fc1b05bec55d70e07a8eaca827ae01 /thread.c
parent3eb7a6eb0b4466aea4b50043d73e84c85a621f26 (diff)
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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 54b4fd599c..a93c6100bf 100644
--- a/thread.c
+++ b/thread.c
@@ -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)) {