Skip to content

Commit b5b576a

Browse files
authored
fix compact_free_size (PaddlePaddle#76491)
1 parent 4702127 commit b5b576a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

paddle/phi/core/memory/allocation/virtual_memory_auto_growth_best_fit_allocator.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ VirtualMemoryAutoGrowthBestFitAllocator::AllocateOrCompact(size_t size) {
211211
VLOG(4) << "Do Memory Compact allocate size and compact " << size;
212212
size_t compact_free_size = memory_compactor_->Compact(
213213
all_blocks_, all_blocks_.front().ptr_, all_blocks_.back().ptr_);
214-
if (compact_free_size < 0) throw;
215214
VLOG(4) << "Memory Compacted Size: " << compact_free_size;
216215
auto free_block = std::prev(all_blocks_.end());
217216
if (free_block->is_free_ && free_block->size_ < size) {

0 commit comments

Comments
 (0)