aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index c34565e9a1..a93c6100bf 100644
--- a/thread.c
+++ b/thread.c
@@ -2171,7 +2171,7 @@ ruby_thread_stack_overflow(rb_thread_t *th)
{
th->raised_flag = 0;
#ifdef USE_SIGALTSTACK
- if (!rb_during_gc()) {
+ if (!rb_threadptr_during_gc(th)) {
rb_exc_raise(sysstack_error);
}
#endif