Skip to content

Commit

Permalink
[WIP]DBG MemPool
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjialiang committed Apr 4, 2024
1 parent f0f5986 commit baeef19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion velox/common/memory/MemoryPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,8 @@ class MemoryPoolImpl : public MemoryPool {
if (FOLLY_UNLIKELY(
(reservationBytes_ < usedReservationBytes_) ||
(reservationBytes_ < minReservationBytes_) ||
(usedReservationBytes_ < 0))) {
(usedReservationBytes_ < 0) ||
(isRoot() && reservationBytes_ > peakBytes_))) {
VELOX_FAIL("Bad memory usage track state: {}", toStringLocked());
}
}
Expand Down

0 comments on commit baeef19

Please sign in to comment.