aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 3ea0b8d921..2713af0550 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -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);
}