summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2023-11-20 16:26:18 -0500
committerGitHub <noreply@github.com>2023-11-20 21:26:18 +0000
commitf9628fb4be1c5eb5a652a6c3d3d97530bdcc76a5 (patch)
tree9f30a4aae59ea7c4345847d8824da8192fec2855
parent323bec6295e46a6f4926e742f7444fc54924b527 (diff)
YJIT: make --yjit-max-versions=N option undocumented (#8962)
Not useful for the vast majority of end users to change this option.
-rw-r--r--doc/yjit/yjit.md1
-rw-r--r--yjit/src/options.rs3
2 files changed, 1 insertions, 3 deletions
diff --git a/doc/yjit/yjit.md b/doc/yjit/yjit.md
index 5e3e7e961b..c0333a584b 100644
--- a/doc/yjit/yjit.md
+++ b/doc/yjit/yjit.md
@@ -172,7 +172,6 @@ compiled, lower values mean less code is compiled (default 200000)
- `--yjit-stats`: print statistics after the execution of a program (incurs a run-time cost)
- `--yjit-stats=quiet`: gather statistics while running a program but don't print them. Stats are accessible through `RubyVM::YJIT.runtime_stats`. (incurs a run-time cost)
- `--yjit-trace-exits`: produce a Marshal dump of backtraces from specific exits. Automatically enables `--yjit-stats`
-- `--yjit-max-versions=N`: maximum number of versions to generate per basic block (default 4)
- `--yjit-perf`: Enable frame pointers and profiling with the `perf` tool
Note that there is also an environment variable `RUBY_YJIT_ENABLE` which can be used to enable YJIT.
diff --git a/yjit/src/options.rs b/yjit/src/options.rs
index 2c45b91710..ebd3bbbc0c 100644
--- a/yjit/src/options.rs
+++ b/yjit/src/options.rs
@@ -100,7 +100,7 @@ pub static mut OPTIONS: Options = Options {
};
/// YJIT option descriptions for `ruby --help`.
-static YJIT_OPTIONS: [(&str, &str); 9] = [
+static YJIT_OPTIONS: [(&str, &str); 8] = [
("--yjit-stats", "Enable collecting YJIT statistics"),
("--yjit-trace-exits", "Record Ruby source location when exiting from generated code"),
("--yjit-trace-exits-sample-rate", "Trace exit locations only every Nth occurrence"),
@@ -108,7 +108,6 @@ static YJIT_OPTIONS: [(&str, &str); 9] = [
("--yjit-code-gc", "Run code GC when the code size reaches the limit"),
("--yjit-call-threshold=num", "Number of calls to trigger JIT"),
("--yjit-cold-threshold=num", "Global call after which ISEQs not compiled (default: 200K)"),
- ("--yjit-max-versions=num", "Maximum number of versions per basic block (default: 4)"),
("--yjit-perf", "Enable frame pointers and perf profiling"),
];