aboutsummaryrefslogtreecommitdiffstats
path: root/vm_trace.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-28 02:50:56 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-28 02:50:56 +0000
commit5b8ce2298ae990473a0356eb6bd5a949001aa70c (patch)
treede833160e55407676db31ef7c2ebeca124a4a973 /vm_trace.c
parent50958da687f0494db1ce73494eb85edbafffd608 (diff)
downloadruby-5b8ce2298ae990473a0356eb6bd5a949001aa70c.tar.gz
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.c8
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) {