summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
authorTakashi Kokubun <[email protected]>2023-03-05 14:15:42 -0800
committerTakashi Kokubun <[email protected]>2023-03-05 23:28:59 -0800
commitd6fde0e6db33ff281660a4222ae183a27d6a73ea (patch)
tree1acd4934854eae689f4af8ee42b21057aba992e7 /mjit.c
parent1c267d0723a076d7e22e7b8f7c3360d200a239c3 (diff)
Change default call threshold to 30
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7448
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index 35ce60785b..b34ae461ef 100644
--- a/mjit.c
+++ b/mjit.c
@@ -187,7 +187,7 @@ rb_mjit_recompile_const(const rb_iseq_t *iseq)
// Default permitted number of units with a JIT code kept in memory.
#define DEFAULT_MAX_CACHE_SIZE 100
// A default threshold used to add iseq to JIT.
-#define DEFAULT_CALL_THRESHOLD 1
+#define DEFAULT_CALL_THRESHOLD 30
#define opt_match_noarg(s, l, name) \
opt_match(s, l, name) && (*(s) ? (rb_warn("argument to --mjit-" name " is ignored"), 1) : 1)