diff options
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) { |