summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rjit.c7
-rw-r--r--rjit.h2
-rw-r--r--rjit.rb4
-rw-r--r--rjit_c.rb2
4 files changed, 7 insertions, 8 deletions
diff --git a/rjit.c b/rjit.c
index 7b65f3069f..a2ce825588 100644
--- a/rjit.c
+++ b/rjit.c
@@ -139,9 +139,8 @@ rb_rjit_setup_options(const char *s, struct rb_rjit_options *rjit_opt)
else if (opt_match_noarg(s, l, "verify-ctx")) {
rjit_opt->verify_ctx = true;
}
- // --rjit=pause is an undocumented feature for experiments
- else if (opt_match_noarg(s, l, "pause")) {
- rjit_opt->pause = true;
+ else if (opt_match_noarg(s, l, "disable")) {
+ rjit_opt->disable = true;
}
else {
rb_raise(rb_eRuntimeError,
@@ -437,7 +436,7 @@ rb_rjit_init(const struct rb_rjit_options *opts)
}
// Enable RJIT and stats from here
- rb_rjit_call_p = !rb_rjit_opts.pause;
+ rb_rjit_call_p = !rb_rjit_opts.disable;
rjit_stats_p = rb_rjit_opts.stats;
}
diff --git a/rjit.h b/rjit.h
index dc984c1cdc..02fb91b835 100644
--- a/rjit.h
+++ b/rjit.h
@@ -35,7 +35,7 @@ struct rb_rjit_options {
// Verify context objects
bool verify_ctx;
// [experimental] Do not start RJIT until RJIT.resume is called.
- bool pause;
+ bool disable;
};
RUBY_SYMBOL_EXPORT_BEGIN
diff --git a/rjit.rb b/rjit.rb
index ebad3529ef..60d76c3f43 100644
--- a/rjit.rb
+++ b/rjit.rb
@@ -4,8 +4,8 @@ module RubyVM::RJIT
Primitive.cexpr! 'RBOOL(rb_rjit_enabled)'
end
- # Start generating JITed code again after --rjit-pause.
- def self.resume
+ # Start generating JITed code again after --rjit-disable.
+ def self.enable
Primitive.cstmt! %{
rb_rjit_call_p = true;
return Qnil;
diff --git a/rjit_c.rb b/rjit_c.rb
index ee5759a08d..fe81959022 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -1332,7 +1332,7 @@ module RubyVM::RJIT # :nodoc: all
trace_exits: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_options *)NULL)), trace_exits)")],
dump_disasm: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_options *)NULL)), dump_disasm)")],
verify_ctx: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_options *)NULL)), verify_ctx)")],
- pause: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_options *)NULL)), pause)")],
+ disable: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_options *)NULL)), disable)")],
)
end