From b415ceb92e464011a9326c9cb5e15a84c39da330 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Wed, 26 May 2021 15:25:50 -0400 Subject: Increase default YJIT call threshold to 10. Add exec mem size arg. (#52) --- ruby.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 8ac7844375..c7bc2ad7a8 100644 --- a/ruby.c +++ b/ruby.c @@ -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")) { -- cgit v1.2.3