mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Don't check for stack overflow when ec is NULL
This commit is contained in:
parent
a04555c8ab
commit
8404c4668d
1 changed files with 2 additions and 0 deletions
2
signal.c
2
signal.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue