[前][次][番号順一覧][スレッド一覧]

ruby-changes:68927

From: Noah <ko1@a...>
Date: Thu, 21 Oct 2021 08:16:37 +0900 (JST)
Subject: [ruby-changes:68927] 89ae21a092 (master): Add back ifdefs for RUBY_DEBUG, accidentally removed

https://git.ruby-lang.org/ruby.git/commit/?id=89ae21a092

From 89ae21a09222c54ada556c449fd58a3e0e6f9816 Mon Sep 17 00:00:00 2001
From: Noah Gibbs <noah.gibbs@s...>
Date: Tue, 29 Jun 2021 16:52:09 +0100
Subject: 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) https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L796
 
 #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) https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L822
     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)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]