This commit is contained in:
John Hawthorn 2025-08-15 11:12:40 +09:00 committed by GitHub
commit ac34bcb4ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -877,6 +877,8 @@ static void
check_stack_overflow(int sig, const void *addr)
{
int ruby_stack_overflowed_p(const rb_thread_t *, const void *);
rb_execution_context_t *ec = rb_current_execution_context(false);
if (!ec) return;
rb_thread_t *th = GET_THREAD();
if (ruby_stack_overflowed_p(th, addr)) {
reset_sigmask(sig);