diff options
Diffstat (limited to 'transient_heap.c')
-rw-r--r-- | transient_heap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/transient_heap.c b/transient_heap.c index 6cdd34284f..6e9cf6440e 100644 --- a/transient_heap.c +++ b/transient_heap.c @@ -294,6 +294,9 @@ transient_heap_block_alloc(struct transient_heap* theap) #else if (theap->arena == NULL) { theap->arena = rb_aligned_malloc(TRANSIENT_HEAP_BLOCK_SIZE, TRANSIENT_HEAP_TOTAL_SIZE); + if (theap->arena == NULL) { + rb_bug("transient_heap_block_alloc: failed\n"); + } } TH_ASSERT(theap->arena_index < TRANSIENT_HEAP_BLOCK_NUM); |