From 3f56d79882b4ce3abe8df7948669874fa70b47a8 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 17 Apr 2017 00:10:47 +0000 Subject: gc.c: rb_threadptr_stack_check * gc.c (rb_threadptr_stack_check): check probability of stack overflow for the given thread, not the current thread. * vm_eval.c (stack_check): check the given thread, not the current thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gc.c') diff --git a/gc.c b/gc.c index ef4770a797..2c23abf0fa 100644 --- a/gc.c +++ b/gc.c @@ -3965,6 +3965,12 @@ stack_check(rb_thread_t *th, int water_mark) #define STACKFRAME_FOR_CALL_CFUNC 512 +int +rb_threadptr_stack_check(rb_thread_t *th) +{ + return stack_check(th, STACKFRAME_FOR_CALL_CFUNC); +} + int ruby_stack_check(void) { -- cgit v1.2.3