diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-09-07 17:06:56 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:40 -0400 |
commit | 013a4a31d65810c9c1b8d34d12a7b766261440a3 (patch) | |
tree | ddfae871fb6b35ca1e2fd6a8f8531e2da412c92e | |
parent | 640b162b51a704d890c44af9c76fffa4eaf28ca9 (diff) |
Prevent stats being enabled late at run-time
-rw-r--r-- | yjit.rb | 4 | ||||
-rw-r--r-- | yjit_iface.c | 7 |
2 files changed, 0 insertions, 11 deletions
@@ -138,10 +138,6 @@ module YJIT 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) 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 |