ruby-changes:48440
From: ko1 <ko1@a...>
Date: Mon, 30 Oct 2017 00:00:27 +0900 (JST)
Subject: [ruby-changes:48440] ko1:r60554 (trunk): use `GET_EC()`.
ko1 2017-10-30 00:00:23 +0900 (Mon, 30 Oct 2017) New Revision: 60554 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60554 Log: use `GET_EC()`. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 60553) +++ vm_eval.c (revision 60554) @@ -1876,8 +1876,8 @@ rb_f_throw(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1876 void rb_throw_obj(VALUE tag, VALUE value) { - rb_thread_t *th = GET_THREAD(); - struct rb_vm_tag *tt = th->ec->tag; + rb_execution_context_t *ec = GET_EC(); + struct rb_vm_tag *tt = ec->tag; while (tt) { if (tt->tag == tag) { @@ -1894,8 +1894,8 @@ rb_throw_obj(VALUE tag, VALUE value) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1894 rb_exc_raise(rb_class_new_instance(numberof(desc), desc, rb_eUncaughtThrow)); } - th->ec->errinfo = (VALUE)THROW_DATA_NEW(tag, NULL, TAG_THROW); - EC_JUMP_TAG(th->ec, TAG_THROW); + ec->errinfo = (VALUE)THROW_DATA_NEW(tag, NULL, TAG_THROW); + EC_JUMP_TAG(ec, TAG_THROW); } void -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/