summaryrefslogtreecommitdiff
path: root/yjit_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'yjit_core.c')
-rw-r--r--yjit_core.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/yjit_core.c b/yjit_core.c
index fbe855d04b..1ad709b2ec 100644
--- a/yjit_core.c
+++ b/yjit_core.c
@@ -558,9 +558,8 @@ add_block_version(block_t *block)
if ((unsigned)casted != body->iseq_size) {
rb_bug("iseq too large");
}
- if (!rb_darray_make(&body->yjit_blocks, casted)) {
- rb_bug("allocation failed");
- }
+
+ rb_darray_make(&body->yjit_blocks, casted);
#if YJIT_STATS
// First block compiled for this iseq
@@ -572,9 +571,7 @@ add_block_version(block_t *block)
rb_yjit_block_array_t *block_array_ref = rb_darray_ref(body->yjit_blocks, blockid.idx);
// Add the new block
- if (!rb_darray_append(block_array_ref, block)) {
- rb_bug("allocation failed");
- }
+ rb_darray_append(block_array_ref, block);
{
// By writing the new block to the iseq, the iseq now