summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-03-12 13:44:47 -0700
committerTakashi Kokubun <[email protected]>2024-03-12 13:44:48 -0700
commit22708be0d71ab5ed5d28d7951fcf670da38c366f (patch)
treefcdbf8974c3c1790e53247809e1893ba835e0146
parent19da3b4ecfb81d937a1bf80e023ebe757111bcb7 (diff)
Revisions for #10198
This fixes some inconsistencies introduced by that PR.
-rw-r--r--rjit.c12
-rw-r--r--ruby.c8
-rw-r--r--yjit/src/options.rs18
3 files changed, 19 insertions, 19 deletions
diff --git a/rjit.c b/rjit.c
index 5f8ac4b2bd..72660394b3 100644
--- a/rjit.c
+++ b/rjit.c
@@ -153,12 +153,12 @@ rb_rjit_setup_options(const char *s, struct rb_rjit_options *rjit_opt)
#define M(shortopt, longopt, desc) RUBY_OPT_MESSAGE(shortopt, longopt, desc)
const struct ruby_opt_message rb_rjit_option_messages[] = {
- M("--rjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: " STRINGIZE(DEFAULT_EXEC_MEM_SIZE) ")"),
- M("--rjit-call-threshold=num", "", "Number of calls to trigger JIT (default: " STRINGIZE(DEFAULT_CALL_THRESHOLD) ")"),
- M("--rjit-stats", "", "Enable collecting RJIT statistics"),
- M("--rjit-disable", "", "Disable RJIT for lazily enabling it with RubyVM::RJIT.enable"),
- M("--rjit-trace", "", "Allow TracePoint during JIT compilation"),
- M("--rjit-trace-exits", "", "Trace side exit locations"),
+ M("--rjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: " STRINGIZE(DEFAULT_EXEC_MEM_SIZE) ")."),
+ M("--rjit-call-threshold=num", "", "Number of calls to trigger JIT (default: " STRINGIZE(DEFAULT_CALL_THRESHOLD) ")."),
+ M("--rjit-stats", "", "Enable collecting RJIT statistics."),
+ M("--rjit-disable", "", "Disable RJIT for lazily enabling it with RubyVM::RJIT.enable."),
+ M("--rjit-trace", "", "Allow TracePoint during JIT compilation."),
+ M("--rjit-trace-exits", "", "Trace side exit locations."),
#ifdef HAVE_LIBCAPSTONE
M("--rjit-dump-disasm", "", "Dump all JIT code"),
#endif
diff --git a/ruby.c b/ruby.c
index ee58d0247e..fb9c77fdd7 100644
--- a/ruby.c
+++ b/ruby.c
@@ -344,9 +344,9 @@ usage(const char *name, int help, int highlight, int columns)
M("-W[level=2|:category]", "", "Set warning flag ($-W):\n"
"0 for silent; 1 for moderate; 2 for verbose."),
M("-x[dirpath]", "", "Execute Ruby code starting from a #!ruby line."),
- M("--jit", "", "Enable JIT for platform; same as " PLATFORM_JIT_OPTION "."),
+ M("--jit", "", "Enable JIT for the platform; same as " PLATFORM_JIT_OPTION "."),
#if USE_YJIT
- M("--yjit", "", "enable in-process JIT compiler."),
+ M("--yjit", "", "Enable in-process JIT compiler."),
#endif
#if USE_RJIT
M("--rjit", "", "Enable pure-Ruby JIT compiler (experimental)."),
@@ -382,8 +382,8 @@ usage(const char *name, int help, int highlight, int columns)
M("gems", "", "Rubygems (only for debugging, default: "DEFAULT_RUBYGEMS_ENABLED")."),
M("error_highlight", "", "error_highlight (default: "DEFAULT_RUBYGEMS_ENABLED")."),
M("did_you_mean", "", "did_you_mean (default: "DEFAULT_RUBYGEMS_ENABLED")."),
- M("syntax_suggest", "", "syntax_suggest (default: "DEFAULT_RUBYGEMS_ENABLED"),"),
- M("rubyopt", "", "RUBYOPT environment variable (default: enabled),"),
+ M("syntax_suggest", "", "syntax_suggest (default: "DEFAULT_RUBYGEMS_ENABLED")."),
+ M("rubyopt", "", "RUBYOPT environment variable (default: enabled)."),
M("frozen-string-literal", "", "Freeze all string literals (default: disabled)."),
#if USE_YJIT
M("yjit", "", "In-process JIT compiler (default: disabled)."),
diff --git a/yjit/src/options.rs b/yjit/src/options.rs
index c18fc3caa9..59ec864bf5 100644
--- a/yjit/src/options.rs
+++ b/yjit/src/options.rs
@@ -101,15 +101,15 @@ pub static mut OPTIONS: Options = Options {
/// YJIT option descriptions for `ruby --help`.
static YJIT_OPTIONS: [(&str, &str); 9] = [
- ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 48)"),
- ("--yjit-call-threshold=num", "Number of calls to trigger JIT"),
- ("--yjit-cold-threshold=num", "Global calls after which ISEQs not compiled (default: 200K)"),
- ("--yjit-stats", "Enable collecting YJIT statistics"),
- ("--yjit-disable", "Disable YJIT for lazily enabling it with RubyVM::YJIT.enable"),
- ("--yjit-code-gc", "Run code GC when the code size reaches the limit"),
- ("--yjit-perf", "Enable frame pointers and perf profiling"),
- ("--yjit-trace-exits", "Record Ruby source location when exiting from generated code"),
- ("--yjit-trace-exits-sample-rate=num", "Trace exit locations only every Nth occurrence"),
+ ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 48)."),
+ ("--yjit-call-threshold=num", "Number of calls to trigger JIT."),
+ ("--yjit-cold-threshold=num", "Global calls after which ISEQs not compiled (default: 200K)."),
+ ("--yjit-stats", "Enable collecting YJIT statistics."),
+ ("--yjit-disable", "Disable YJIT for lazily enabling it with RubyVM::YJIT.enable."),
+ ("--yjit-code-gc", "Run code GC when the code size reaches the limit."),
+ ("--yjit-perf", "Enable frame pointers and perf profiling."),
+ ("--yjit-trace-exits", "Record Ruby source location when exiting from generated code."),
+ ("--yjit-trace-exits-sample-rate=num", "Trace exit locations only every Nth occurrence."),
];
#[derive(Clone, Copy, PartialEq, Eq, Debug)]