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

ruby-changes:68886

From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:15:03 +0900 (JST)
Subject: [ruby-changes:68886] 543bdde6c2 (master): Update yjit_iface.c

https://git.ruby-lang.org/ruby.git/commit/?id=543bdde6c2

From 543bdde6c21f071e673aa8090086e1045ee4f2d9 Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maximechevalierb@g...>
Date: Wed, 7 Apr 2021 13:10:14 -0400
Subject: Update yjit_iface.c

---
 yjit_iface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yjit_iface.c b/yjit_iface.c
index 32b9c52da5..9e708b5bb8 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -795,7 +795,7 @@ print_insn_count_buffer(const struct insn_count *buffer, int how_many, int left_ https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L795
     int64_t retired_in_yjit = yjit_runtime_counters.exec_instruction - total_exit_count;
 
     // Average length of instruction sequences executed by YJIT
-    double avg_len_in_yjit = (double)yjit_runtime_counters.exec_instruction / total_exit_count;
+    double avg_len_in_yjit = (double)retired_in_yjit / total_exit_count;
 
     // Proportion of instructions that retire in YJIT
     double total_insns_count = retired_in_yjit + vm_insns_count;
-- 
cgit v1.2.1


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

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