mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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:
parent
71560f8804
commit
6883aeda77
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue