From 89ae21a09222c54ada556c449fd58a3e0e6f9816 Mon Sep 17 00:00:00 2001 From: Noah Gibbs Date: Tue, 29 Jun 2021 16:52:09 +0100 Subject: [PATCH] Add back ifdefs for RUBY_DEBUG, accidentally removed --- yjit_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yjit_iface.c b/yjit_iface.c index a019458074..c94268fda1 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -796,6 +796,7 @@ reset_stats_bang(rb_execution_context_t *ec, VALUE self) #include "yjit.rbinc" +#if RUBY_DEBUG void rb_yjit_collect_vm_usage_insn(int insn) { @@ -821,6 +822,7 @@ rb_yjit_count_side_exit_op(const VALUE *exit_pc) exit_op_count[insn]++; return exit_pc; // This function must return exit_pc! } +#endif void rb_yjit_iseq_mark(const struct rb_iseq_constant_body *body)