summaryrefslogtreecommitdiff
path: root/yjit_core.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-04-09 14:29:43 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:33 -0400
commit31acd22d3be745966abc8ded145f03d4114caf63 (patch)
tree435b412eed5286d4fc61845fe8192509515d5dbe /yjit_core.c
parent2404ff691d81183dc7d1bdc844fd7d556edf6837 (diff)
Assert for running out of branches in all builds
Diffstat (limited to 'yjit_core.c')
-rw-r--r--yjit_core.c6
1 files 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(
{
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(
)
{
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(
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