diff --git a/util/arena.cc b/util/arena.cc index 8fbf2e82a..1fe455af5 100644 --- a/util/arena.cc +++ b/util/arena.cc @@ -90,8 +90,7 @@ char* Arena::AllocateFallback(size_t bytes, bool aligned) { block_head = AllocateFromHugePage(size); } #endif - if (size == 0) { - assert(block_head == nullptr); + if (!block_head) { size = kBlockSize; block_head = AllocateNewBlock(size); }