Skip to content

Commit d6fde0e

Browse files
committed
Change default call threshold to 30
1 parent 1c267d0 commit d6fde0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/mjit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
matrix:
3131
# main variables included in the job name
3232
test_task: [check]
33-
run_opts: ['--mjit']
33+
run_opts: ['--mjit-call-threshold=1']
3434
arch: ['']
3535
fail-fast: false
3636
env:

mjit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ rb_mjit_recompile_const(const rb_iseq_t *iseq)
187187
// Default permitted number of units with a JIT code kept in memory.
188188
#define DEFAULT_MAX_CACHE_SIZE 100
189189
// A default threshold used to add iseq to JIT.
190-
#define DEFAULT_CALL_THRESHOLD 1
190+
#define DEFAULT_CALL_THRESHOLD 30
191191

192192
#define opt_match_noarg(s, l, name) \
193193
opt_match(s, l, name) && (*(s) ? (rb_warn("argument to --mjit-" name " is ignored"), 1) : 1)

0 commit comments

Comments
 (0)