From 6785a52b1b1330ee2e3eed73750006abaee63524 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 5 May 2014 07:13:48 -0700 Subject: [PATCH] Temporary remove perror() calls before we can log from inside of arena --- util/arena.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/arena.cc b/util/arena.cc index 3575f2d90..0e36bb560 100644 --- a/util/arena.cc +++ b/util/arena.cc @@ -43,7 +43,6 @@ Arena::~Arena() { auto ret = munmap(mmap_info.addr_, mmap_info.length_); if (ret != 0) { // TODO(sdong): Better handling - perror("munmap"); } } } @@ -84,7 +83,7 @@ char* Arena::AllocateAligned(size_t bytes, size_t huge_page_tlb_size) { void* addr = mmap(nullptr, reserved_size, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB), 0, 0); if (addr == MAP_FAILED) { - perror("mmap"); + // TODO(sdong): Better handling // fail back to malloc } else { blocks_memory_ += reserved_size;