1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prevent stats being enabled late at run-time

This commit is contained in:
Maxime Chevalier-Boisvert 2021-09-07 17:06:56 -04:00 committed by Alan Wu
parent 640b162b51
commit 013a4a31d6
2 changed files with 0 additions and 11 deletions

View file

@ -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

View file

@ -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