From f3400dfd81e6c1b44acdaadce9fb180bc238353a Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 26 Oct 2017 10:52:05 +0000 Subject: [PATCH] use GET_EC() * vm.c (vm_ep_in_heap_p_): use GET_EC() instead of GET_THREAD(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm.c b/vm.c index 83bf0c69e1..9349cc2d4d 100644 --- a/vm.c +++ b/vm.c @@ -138,9 +138,9 @@ vm_ep_in_heap_p_(const rb_execution_context_t *ec, const VALUE *ep) 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