mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
merge revision(s) 62673: [Backport #14577]
thread.c: deadlock in backtrace * thread.c (unblock_function_set): check interrupts just once during raising exceptions, as they are deferred since r16651. [ruby-core:85939] [Bug #14577] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c28d3d02c2
commit
e02e7379dc
3 changed files with 24 additions and 2 deletions
2
thread.c
2
thread.c
|
@ -392,7 +392,7 @@ unblock_function_set(rb_thread_t *th, rb_unblock_function_t *func, void *arg, in
|
|||
}
|
||||
|
||||
native_mutex_lock(&th->interrupt_lock);
|
||||
} while (RUBY_VM_INTERRUPTED_ANY(th->ec) &&
|
||||
} while (!th->ec->raised_flag && RUBY_VM_INTERRUPTED_ANY(th->ec) &&
|
||||
(native_mutex_unlock(&th->interrupt_lock), TRUE));
|
||||
|
||||
VM_ASSERT(th->unblock.func == NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue