diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-29 13:17:37 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-29 13:17:37 +0000 |
commit | 3fd1b00528ad9209acd60c5badcdc0b374c50000 (patch) | |
tree | 503f5716e56c8cdb8d5e9c72d06beb93d7e301f2 /vm_core.h | |
parent | 382aa678d093904762f352063689577b3269a51c (diff) |
`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
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |