From 5b8ce2298ae990473a0356eb6bd5a949001aa70c Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 28 Jun 2017 02:50:56 +0000 Subject: move storages to ec. * vm_core.h (rb_thread_t): move storages to rb_execution_context_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_trace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vm_trace.c') diff --git a/vm_trace.c b/vm_trace.c index 76728e21ed..e970dfcae2 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -329,10 +329,10 @@ rb_threadptr_exec_event_hooks_orig(rb_trace_arg_t *trace_arg, int pop_p) if (th->trace_arg == 0 && /* check reentrant */ trace_arg->self != rb_mRubyVMFrozenCore /* skip special methods. TODO: remove it. */) { const VALUE errinfo = th->errinfo; - const VALUE old_recursive = th->local_storage_recursive_hash; + const VALUE old_recursive = th->ec.local_storage_recursive_hash; int state = 0; - th->local_storage_recursive_hash = th->local_storage_recursive_hash_for_trace; + th->ec.local_storage_recursive_hash = th->ec.local_storage_recursive_hash_for_trace; th->errinfo = Qnil; th->vm->trace_running++; @@ -352,8 +352,8 @@ rb_threadptr_exec_event_hooks_orig(rb_trace_arg_t *trace_arg, int pop_p) th->trace_arg = 0; th->vm->trace_running--; - th->local_storage_recursive_hash_for_trace = th->local_storage_recursive_hash; - th->local_storage_recursive_hash = old_recursive; + th->ec.local_storage_recursive_hash_for_trace = th->ec.local_storage_recursive_hash; + th->ec.local_storage_recursive_hash = old_recursive; if (state) { if (pop_p) { -- cgit v1.2.3