summaryrefslogtreecommitdiff
path: root/yjit_iface.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-06-23 21:19:10 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:36 -0400
commit6883aeda77c09c4982080f968491eacbc43a47e1 (patch)
treed70df3df76641a239562e71dcf3fca1b2319a508 /yjit_iface.c
parent71560f8804d30509b5d0be6547469b089c63ab9a (diff)
Add a macro for tweaking default call threshold
For use in development for writing `test.rb` and running with `make run`.
Diffstat (limited to 'yjit_iface.c')
-rw-r--r--yjit_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit_iface.c b/yjit_iface.c
index e8f268e48c..ba3e5bbb83 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -1098,7 +1098,7 @@ rb_yjit_init(struct rb_yjit_options *options)
rb_yjit_opts.exec_mem_size = 256;
}
if (rb_yjit_opts.call_threshold < 1) {
- rb_yjit_opts.call_threshold = 10;
+ rb_yjit_opts.call_threshold = YJIT_DEFAULT_CALL_THRESHOLD;
}
if (rb_yjit_opts.max_versions < 1) {
rb_yjit_opts.max_versions = 4;