diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-11 00:00:14 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-05 22:11:20 -0800 |
commit | 3d19db4f8b2b1f768f9737c72c77341ab2fc3330 (patch) | |
tree | 2d36f49ffbbb6620c1204383215caf84f19b1060 /mjit.c | |
parent | 251f976235430effddf82cb08ac0e389ddd36a74 (diff) |
Use call-threshold 1 for now
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -262,7 +262,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 10000 +#define DEFAULT_CALL_THRESHOLD 1 #define opt_match_noarg(s, l, name) \ opt_match(s, l, name) && (*(s) ? (rb_warn("argument to --mjit-" name " is ignored"), 1) : 1) @@ -395,7 +395,9 @@ mjit_init(const struct mjit_options *opts) mjit_call_p = true; - // TODO: implement + // Normalize options + if (mjit_opts.call_threshold == 0) + mjit_opts.call_threshold = DEFAULT_CALL_THRESHOLD; } void |