Skip to content

Commit

Permalink
Add Mmap allocator information to error message when failing with Mma…
Browse files Browse the repository at this point in the history
…p failed
  • Loading branch information
mohsaka committed Apr 11, 2024
1 parent f51e34d commit e8cf13a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions velox/common/memory/MmapAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ bool MmapAllocator::allocateContiguousImpl(
(useMmapArena_ ? "true" : "false"),
folly::errnoStr(errno));
VELOX_MEM_LOG(ERROR) << errorMsg;
VELOX_MEM_LOG(ERROR) << toString();
setAllocatorFailureMessage(errorMsg);
// If the mmap failed, we have unmapped former 'allocation' and the extra to
// be mapped.
Expand Down

0 comments on commit e8cf13a

Please sign in to comment.