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

ruby-changes:69111

From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:20:52 +0900 (JST)
Subject: [ruby-changes:69111] 013a4a31d6 (master): Prevent stats being enabled late at run-time

https://git.ruby-lang.org/ruby.git/commit/?id=013a4a31d6

From 013a4a31d65810c9c1b8d34d12a7b766261440a3 Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...>
Date: Tue, 7 Sep 2021 17:06:56 -0400
Subject: Prevent stats being enabled late at run-time

---
 yjit.rb      | 4 ----
 yjit_iface.c | 7 -------
 2 files changed, 11 deletions(-)

diff --git a/yjit.rb b/yjit.rb
index 3fa91cfebc..51424a6a5e 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -138,10 +138,6 @@ module YJIT https://github.com/ruby/ruby/blob/trunk/yjit.rb#L138
     Primitive.cexpr! 'rb_yjit_opts.gen_stats ? Qtrue : Qfalse'
   end
 
-  def self.stats_enabled=(enabled)
-    Primitive.set_stats_enabled(enabled)
-  end
-
   def self.enabled?
     Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse'
   end
diff --git a/yjit_iface.c b/yjit_iface.c
index c11f8db493..dc38b57b5c 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -811,13 +811,6 @@ reset_stats_bang(rb_execution_context_t *ec, VALUE self) https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L811
     return Qnil;
 }
 
-static VALUE
-set_stats_enabled(rb_execution_context_t *ec, VALUE self, VALUE enabled)
-{
-    rb_yjit_opts.gen_stats = RB_TEST(enabled);
-    return enabled;
-}
-
 #include "yjit.rbinc"
 
 #if YJIT_STATS
-- 
cgit v1.2.1


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

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