aboutsummaryrefslogtreecommitdiffstats
path: root/yjit_iface.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maximechevalierb@gmail.com>2021-04-24 00:16:48 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:34 -0400
commit96f4f918b04fad1401d4f41cd11d97d9d4d28c7d (patch)
tree27959163baee644317499d709913c12fc683890b /yjit_iface.c
parent4c7afa64b49d792da586709b2bbc1aa2f04b5712 (diff)
downloadruby-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.c3
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();