Increase default YJIT call threshold to 10. Add exec mem size arg. (#52)

This commit is contained in:
Maxime Chevalier-Boisvert 2021-05-26 15:25:50 -04:00 committed by Alan Wu
parent 764740c661
commit b415ceb92e
5 changed files with 20 additions and 10 deletions

5
ruby.c
View file

@ -1036,7 +1036,10 @@ setup_yjit_options(const char *s, struct rb_yjit_options *yjit_opt)
if (*s != '-') return;
const size_t l = strlen(++s);
if (opt_match_arg(s, l, "call-threshold")) {
if (opt_match_arg(s, l, "exec-mem-size")) {
yjit_opt->exec_mem_size = atoi(s + 1);
}
else if (opt_match_arg(s, l, "call-threshold")) {
yjit_opt->call_threshold = atoi(s + 1);
}
else if (opt_match_arg(s, l, "version-limit")) {