ruby-changes:48332
From: ko1 <ko1@a...>
Date: Thu, 26 Oct 2017 19:52:09 +0900 (JST)
Subject: [ruby-changes:48332] ko1:r60446 (trunk): use GET_EC()
ko1 2017-10-26 19:52:05 +0900 (Thu, 26 Oct 2017) New Revision: 60446 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60446 Log: use GET_EC() * vm.c (vm_ep_in_heap_p_): use GET_EC() instead of GET_THREAD(). Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 60445) +++ vm.c (revision 60446) @@ -138,9 +138,9 @@ vm_ep_in_heap_p_(const rb_execution_cont https://github.com/ruby/ruby/blob/trunk/vm.c#L138 int rb_vm_ep_in_heap_p(const VALUE *ep) { - rb_thread_t *th = GET_THREAD(); - if (th->ec->vm_stack == NULL) return TRUE; - return vm_ep_in_heap_p_(th->ec, ep); + const rb_execution_context_t *ec = GET_EC(); + if (ec->vm_stack == NULL) return TRUE; + return vm_ep_in_heap_p_(ec, ep); } #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/