ruby-changes:48439
From: ko1 <ko1@a...>
Date: Sun, 29 Oct 2017 23:59:09 +0900 (JST)
Subject: [ruby-changes:48439] ko1:r60553 (trunk): use `GET_EC()`.
ko1 2017-10-29 23:59:04 +0900 (Sun, 29 Oct 2017) New Revision: 60553 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60553 Log: use `GET_EC()`. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 60552) +++ vm_eval.c (revision 60553) @@ -1518,13 +1518,13 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int le https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1518 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 le https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1538 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/