diff options
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -300,7 +300,8 @@ rb_current_receiver(void) static inline void stack_check(rb_thread_t *th) { - if (!rb_thread_raised_p(th, RAISED_STACKOVERFLOW) && ruby_stack_check()) { + if (!rb_thread_raised_p(th, RAISED_STACKOVERFLOW) && + rb_threadptr_stack_check(th)) { rb_thread_raised_set(th, RAISED_STACKOVERFLOW); rb_exc_raise(sysstack_error); } |