summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maximechevalierb@gmail.com>2021-05-26 15:25:50 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:35 -0400
commitb415ceb92e464011a9326c9cb5e15a84c39da330 (patch)
tree5b42a1b39408a81d60215929b4f6e138e3ab57b8 /ruby.c
parent764740c6615292dc994707b964c135871149fb2b (diff)
Increase default YJIT call threshold to 10. Add exec mem size arg. (#52)
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c5
1 files changed, 4 insertions, 1 deletions
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")) {