summaryrefslogtreecommitdiff
path: root/yjit_core.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-06-23 13:55:34 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:36 -0400
commit7030cae969085f2849bc265047397fadff8b97e3 (patch)
tree9453674aea8f82e1d4dc0e9d4b63e198e5e52ac8 /yjit_core.c
parentb63fcafbc953205a6547bff74cbfcb906f1f87fe (diff)
Try running with more YJIT options in CI to surface more bugs
Diffstat (limited to 'yjit_core.c')
-rw-r--r--yjit_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit_core.c b/yjit_core.c
index 6a5bff4171..e90347237f 100644
--- a/yjit_core.c
+++ b/yjit_core.c
@@ -421,7 +421,7 @@ block_t* find_block_version(blockid_t blockid, const ctx_t* ctx)
if (rb_yjit_opts.greedy_versioning)
{
// If we're below the version limit, don't settle for an imperfect match
- if ((uint32_t)rb_darray_size(versions) + 1 < rb_yjit_opts.version_limit && best_diff > 0) {
+ if ((uint32_t)rb_darray_size(versions) + 1 < rb_yjit_opts.max_versions && best_diff > 0) {
return NULL;
}
}
@@ -438,7 +438,7 @@ void limit_block_versions(blockid_t blockid, ctx_t* ctx)
return;
// If this block version we're about to add will hit the version limit
- if (get_num_versions(blockid) + 1 >= rb_yjit_opts.version_limit)
+ if (get_num_versions(blockid) + 1 >= rb_yjit_opts.max_versions)
{
// Produce a generic context that stores no type information,
// but still respects the stack_size and sp_offset constraints