Add a macro for tweaking default call threshold

For use in development for writing `test.rb` and running with `make
run`.
This commit is contained in:
Alan Wu 2021-06-23 21:19:10 -04:00
parent 71560f8804
commit 6883aeda77
2 changed files with 6 additions and 2 deletions

View file

@ -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;