From 6fb695bdedf4409b8a0701ce867f9b33a197110e Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 29 Oct 2017 14:59:04 +0000 Subject: use `GET_EC()`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 2cd58d88b5..9e6fd35819 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; } -- cgit v1.2.3