From 7285177c9700c7176c767047f1f788997623cbd0 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 7 Nov 2017 05:54:34 +0000 Subject: * vm_trace.c (rb_exec_event_hooks): accepts pop_p. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_trace.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'vm_trace.c') diff --git a/vm_trace.c b/vm_trace.c index f26808fa63..4e79ae279a 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -298,8 +298,8 @@ exec_hooks_protected(rb_execution_context_t *ec, rb_hook_list_t *list, const rb_ return state; } -static void -rb_exec_event_hooks_orig(rb_trace_arg_t *trace_arg, int pop_p) +void +rb_exec_event_hooks(rb_trace_arg_t *trace_arg, int pop_p) { rb_execution_context_t *ec = trace_arg->ec; rb_vm_t *vm = rb_ec_vm_ptr(ec); @@ -362,18 +362,6 @@ rb_exec_event_hooks_orig(rb_trace_arg_t *trace_arg, int pop_p) } } -void -rb_threadptr_exec_event_hooks_and_pop_frame(rb_trace_arg_t *trace_arg) -{ - rb_exec_event_hooks_orig(trace_arg, 1); -} - -void -rb_threadptr_exec_event_hooks(rb_trace_arg_t *trace_arg) -{ - rb_exec_event_hooks_orig(trace_arg, 0); -} - VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg) { -- cgit v1.2.3