1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add =num to yjit options

`--yjit-call-threshold` and `--yjit-max-versions` need an argument.
This commit is contained in:
Kazuhiro NISHIYAMA 2022-01-09 12:39:34 +09:00
parent cc01ae591b
commit a7faca51ac
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

4
ruby.c
View file

@ -369,8 +369,8 @@ usage(const char *name, int help, int highlight, int columns)
M("--yjit-stats", "", "Enable collecting YJIT statistics"), M("--yjit-stats", "", "Enable collecting YJIT statistics"),
#endif #endif
M("--yjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: 256)"), M("--yjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: 256)"),
M("--yjit-call-threshold", "", "Number of calls to trigger JIT (default: 10)"), M("--yjit-call-threshold=num", "", "Number of calls to trigger JIT (default: 10)"),
M("--yjit-max-versions", "", "Maximum number of versions per basic block (default: 4)"), M("--yjit-max-versions=num", "", "Maximum number of versions per basic block (default: 4)"),
M("--yjit-greedy-versioning", "", "Greedy versioning mode (default: disabled)"), M("--yjit-greedy-versioning", "", "Greedy versioning mode (default: disabled)"),
}; };
int i; int i;