diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-12-13 13:29:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 13:29:37 -0800 |
commit | b266890dab38d12ad52288d5edf60f885ae5b8ce (patch) | |
tree | a8c4e95294f4c82e9c5b9992da51cb8368cc10cc /yjit | |
parent | 7f4b271a61a11b0254304b78db72fd2c954a4370 (diff) | |
download | ruby-b266890dab38d12ad52288d5edf60f885ae5b8ce.tar.gz |
YJIT: Add --yjit-disable to help and reorder it (#9230)
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/options.rs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/yjit/src/options.rs b/yjit/src/options.rs index 1cdccac523..522acc24c4 100644 --- a/yjit/src/options.rs +++ b/yjit/src/options.rs @@ -100,15 +100,16 @@ pub static mut OPTIONS: Options = Options { }; /// YJIT option descriptions for `ruby --help`. -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"), - ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 64)"), - ("--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-perf", "Enable frame pointers and perf profiling"), +static YJIT_OPTIONS: [(&str, &str); 9] = [ + ("--yjit-exec-mem-size=num", "Size of executable memory block in MiB (default: 64)"), + ("--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, PartialEq, Eq, Debug)] |