mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Assert for running out of branches in all builds
This commit is contained in:
parent
2404ff691d
commit
31acd22d3b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue