aboutsummaryrefslogtreecommitdiffstats
path: root/eval_intern.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 00:10:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 00:10:47 +0000
commit3f56d79882b4ce3abe8df7948669874fa70b47a8 (patch)
tree7babbcd6f970afd9409bd6e7bd4a3e2c567bb541 /eval_intern.h
parent8812890be81b59700c9e11dbb62765286277974d (diff)
downloadruby-3f56d79882b4ce3abe8df7948669874fa70b47a8.tar.gz
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
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval_intern.h b/eval_intern.h
index c5210b14de..eb1746bfb2 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -268,6 +268,7 @@ int rb_threadptr_reset_raised(rb_thread_t *th);
#define rb_thread_raised_reset(th, f) ((th)->raised_flag &= ~(f))
#define rb_thread_raised_p(th, f) (((th)->raised_flag & (f)) != 0)
#define rb_thread_raised_clear(th) ((th)->raised_flag = 0)
+int rb_threadptr_stack_check(rb_thread_t *th);
VALUE rb_f_eval(int argc, const VALUE *argv, VALUE self);
VALUE rb_make_exception(int argc, const VALUE *argv);