Skip to content

Commit 22a604f

Browse files
authored
Merge pull request #205 from Shopify/stats_no_late_enable
Prevent stats being enabled late at run-time
2 parents d837fc8 + 324d623 commit 22a604f

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

yjit.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ def self.stats_enabled?
138138
Primitive.cexpr! 'rb_yjit_opts.gen_stats ? Qtrue : Qfalse'
139139
end
140140

141-
def self.stats_enabled=(enabled)
142-
Primitive.set_stats_enabled(enabled)
143-
end
144-
145141
def self.enabled?
146142
Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse'
147143
end

yjit_iface.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -811,13 +811,6 @@ reset_stats_bang(rb_execution_context_t *ec, VALUE self)
811811
return Qnil;
812812
}
813813

814-
static VALUE
815-
set_stats_enabled(rb_execution_context_t *ec, VALUE self, VALUE enabled)
816-
{
817-
rb_yjit_opts.gen_stats = RB_TEST(enabled);
818-
return enabled;
819-
}
820-
821814
#include "yjit.rbinc"
822815

823816
#if YJIT_STATS

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy