diff options
author | Maxime Chevalier-Boisvert <maximechevalierb@gmail.com> | 2021-04-24 00:16:48 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:34 -0400 |
commit | 96f4f918b04fad1401d4f41cd11d97d9d4d28c7d (patch) | |
tree | 27959163baee644317499d709913c12fc683890b /yjit_iface.c | |
parent | 4c7afa64b49d792da586709b2bbc1aa2f04b5712 (diff) | |
download | ruby-96f4f918b04fad1401d4f41cd11d97d9d4d28c7d.tar.gz |
Implement greedy versioning. Refactor versioning logic. (#10)
* Implement eager versioning. Refactor versioning logic.
* Add --version-limit and --greedy-versioning command-line args
Diffstat (limited to 'yjit_iface.c')
-rw-r--r-- | yjit_iface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit_iface.c b/yjit_iface.c index 0471a26ada..afd9b774cb 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -1044,6 +1044,9 @@ rb_yjit_init(struct rb_yjit_options *options) if (rb_yjit_opts.call_threshold < 1) { rb_yjit_opts.call_threshold = 2; } + if (rb_yjit_opts.version_limit < 1) { + rb_yjit_opts.version_limit = 4; + } blocks_assuming_stable_global_constant_state = st_init_numtable(); blocks_assuming_single_ractor_mode = st_init_numtable(); |