From 3fd1b00528ad9209acd60c5badcdc0b374c50000 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 29 Oct 2017 13:17:37 +0000 Subject: `rb_trace_arg_t::ec` * vm_core.h (rb_trace_arg_t): introduce `ec` field instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 25a5018ba6..e54cf5c6f8 100644 --- a/vm_core.h +++ b/vm_core.h @@ -1694,8 +1694,8 @@ ruby_vm_check_ints(rb_thread_t *th) /* tracer */ struct rb_trace_arg_struct { rb_event_flag_t event; - rb_thread_t *th; - rb_control_frame_t *cfp; + rb_execution_context_t *ec; + const rb_control_frame_t *cfp; VALUE self; ID id; ID called_id; @@ -1727,7 +1727,7 @@ ruby_exec_event_hook_orig(rb_thread_t *const th, const rb_event_flag_t flag, if ((th->event_hooks.events | th->vm->event_hooks.events) & flag) { struct rb_trace_arg_struct trace_arg; trace_arg.event = flag; - trace_arg.th = th; + trace_arg.ec = th->ec; trace_arg.cfp = th->ec->cfp; trace_arg.self = self; trace_arg.id = id; -- cgit v1.2.3