ruby-changes:69184
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:19:12 +0900 (JST)
Subject: [ruby-changes:69184] 31acd22d3b (master): Assert for running out of branches in all builds
https://git.ruby-lang.org/ruby.git/commit/?id=31acd22d3b From 31acd22d3be745966abc8ded145f03d4114caf63 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Fri, 9 Apr 2021 14:29:43 -0400 Subject: Assert for running out of branches in all builds --- yjit_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yjit_core.c b/yjit_core.c index f0b7c31984..64a87b5d8a 100644 --- a/yjit_core.c +++ b/yjit_core.c @@ -653,7 +653,7 @@ void gen_branch( https://github.com/ruby/ruby/blob/trunk/yjit_core.c#L653 { RUBY_ASSERT(target0.iseq != NULL); //RUBY_ASSERT(target1.iseq != NULL); - RUBY_ASSERT(num_branches < MAX_BRANCHES); + RUBY_ASSERT_ALWAYS(num_branches < MAX_BRANCHES); uint32_t branch_idx = num_branches++; // Get the branch targets or stubs @@ -704,7 +704,7 @@ void gen_direct_jump( https://github.com/ruby/ruby/blob/trunk/yjit_core.c#L704 ) { RUBY_ASSERT(target0.iseq != NULL); - RUBY_ASSERT(num_branches < MAX_BRANCHES); + RUBY_ASSERT_ALWAYS(num_branches < MAX_BRANCHES); ctx_t generic_ctx; uint32_t branch_idx = num_branches++; @@ -788,7 +788,7 @@ void defer_compilation( https://github.com/ruby/ruby/blob/trunk/yjit_core.c#L788 next_ctx.chain_depth += 1; - RUBY_ASSERT(num_branches < MAX_BRANCHES); + RUBY_ASSERT_ALWAYS(num_branches < MAX_BRANCHES); uint32_t branch_idx = num_branches++; // Get the branch targets or stubs -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/