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

ruby-changes:69221

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:24:07 +0900 (JST)
Subject: [ruby-changes:69221] 121d8f4727 (master): Compile out declaration for runtime stats on non stats builds

https://git.ruby-lang.org/ruby.git/commit/?id=121d8f4727

From 121d8f47274d53a013f9306a3e53a6f37e66a8e5 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Wed, 15 Sep 2021 11:36:44 -0400
Subject: Compile out declaration for runtime stats on non stats builds

Checked on default build, RUBY_DEBUG build, and YJIT_STATS build.
---
 yjit_iface.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/yjit_iface.h b/yjit_iface.h
index a0fcb931a2..b53059b6da 100644
--- a/yjit_iface.h
+++ b/yjit_iface.h
@@ -99,10 +99,11 @@ YJIT_DECLARE_COUNTERS( https://github.com/ruby/ruby/blob/trunk/yjit_iface.h#L99
 
 #undef YJIT_DECLARE_COUNTERS
 
+RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters;
+
 #endif // YJIT_STATS
 
 RUBY_EXTERN struct rb_yjit_options rb_yjit_opts;
-RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters;
 
 void yjit_map_addr2insn(void *code_ptr, int insn);
 VALUE *yjit_iseq_pc_at_idx(const rb_iseq_t *iseq, uint32_t insn_idx);
-- 
cgit v1.2.1


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

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