Prevent stats being enabled late at run-time
This commit is contained in:
parent
640b162b51
commit
013a4a31d6
4
yjit.rb
4
yjit.rb
@ -138,10 +138,6 @@ module YJIT
|
|||||||
Primitive.cexpr! 'rb_yjit_opts.gen_stats ? Qtrue : Qfalse'
|
Primitive.cexpr! 'rb_yjit_opts.gen_stats ? Qtrue : Qfalse'
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.stats_enabled=(enabled)
|
|
||||||
Primitive.set_stats_enabled(enabled)
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.enabled?
|
def self.enabled?
|
||||||
Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse'
|
Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse'
|
||||||
end
|
end
|
||||||
|
@ -811,13 +811,6 @@ reset_stats_bang(rb_execution_context_t *ec, VALUE self)
|
|||||||
return Qnil;
|
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"
|
#include "yjit.rbinc"
|
||||||
|
|
||||||
#if YJIT_STATS
|
#if YJIT_STATS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user