summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:22:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:22:09 +0000
commit48ce4cb414be48be1a73d2530203469b3b98281c (patch)
treec48f45a0bb33edc2b5c507f2727b840c929f3280 /vm_eval.c
parentee189904f0e3e0263adcbcc844947f6ccddfb7ad (diff)
* eval_intern.h: rename macros rb_thread_raised_* to
rb_ec_raised_*. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 7b2415e..6930919 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -255,12 +255,10 @@ rb_current_receiver(void)
static inline void
stack_check(rb_execution_context_t *ec)
{
- rb_thread_t *th = rb_ec_thread_ptr(ec);
-
- if (!rb_thread_raised_p(th, RAISED_STACKOVERFLOW) &&
+ if (!rb_ec_raised_p(ec, RAISED_STACKOVERFLOW) &&
rb_ec_stack_check(ec)) {
- rb_thread_raised_set(th, RAISED_STACKOVERFLOW);
- rb_ec_stack_overflow(th->ec, FALSE);
+ rb_ec_raised_set(ec, RAISED_STACKOVERFLOW);
+ rb_ec_stack_overflow(ec, FALSE);
}
}