summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 14:59:04 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 14:59:04 +0000
commit502d8d7ccbe7489180d01b6afb5fb3b879ab6745 (patch)
tree584cd96cd3b3dffad0066f1e0d9bd6da8d7b784c /vm_eval.c
parent881ac0a5655a20272e3b23de42131a7be180e8df (diff)
use `GET_EC()`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 2cd58d8..9e6fd35 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1518,13 +1518,13 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level)
enum ruby_tag_type state;
volatile VALUE val = Qnil; /* OK */
const int VAR_NOCLOBBERED(safe) = rb_safe_level();
- rb_thread_t *const VAR_NOCLOBBERED(th) = GET_THREAD();
+ rb_execution_context_t * volatile ec = GET_EC();
if (OBJ_TAINTED(cmd)) {
level = RUBY_SAFE_LEVEL_MAX;
}
- EC_PUSH_TAG(th->ec);
+ EC_PUSH_TAG(ec);
rb_set_safe_level_force(level);
if ((state = EC_EXEC_TAG()) == TAG_NONE) {
if (!RB_TYPE_P(cmd, T_STRING)) {
@@ -1538,7 +1538,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level)
EC_POP_TAG();
rb_set_safe_level_force(safe);
- if (state) EC_JUMP_TAG(th->ec, state);
+ if (state) EC_JUMP_TAG(ec, state);
return val;
}