From c73959cff40ba0f1d71ea6e3fce19b5f287e8494 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 21 Dec 2023 14:24:10 -0800 Subject: RJIT: Rename pause/resume to disable/enable like YJIT. They don't work in the same way yet, but it's nice to make the naming consistent first so that we will not need to rename them later. --- rjit.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rjit.c') 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; } -- cgit v1.2.3