summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_eval.c b/vm_eval.c
index d98bd076bd..afd3338e54 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -345,9 +345,11 @@ rb_call0(rb_execution_context_t *ec,
}
if (scope == CALL_PUBLIC) {
+ RB_DEBUG_COUNTER_INC(call0_public);
me = rb_callable_method_entry_with_refinements(CLASS_OF(recv), mid, NULL);
}
else {
+ RB_DEBUG_COUNTER_INC(call0_other);
me = rb_search_method_entry(recv, mid);
}
call_status = rb_method_call_status(ec, me, scope, self);