diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 02:50:56 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 02:50:56 +0000 |
commit | d98afe3ae2bfcef9ca5765e72f159d863b113e3b (patch) | |
tree | de833160e55407676db31ef7c2ebeca124a4a973 /vm_trace.c | |
parent | b3f38b57e72a9904e6c337196d5077638929e9c2 (diff) |
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
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |