Commit 7aeb32a3 authored by JianxiaoLuIntel's avatar JianxiaoLuIntel Committed by V8 LUCI CQ

heap: Remove redundant check for deserialization_complete

Change-Id: I9d135e2add4f6ae7b0b19b97081ec40096ff75b2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3708026Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Jianxiao Lu <jianxiao.lu@intel.com>
Cr-Commit-Position: refs/heads/main@{#81215}
parent 1ed7d0b8
......@@ -1902,9 +1902,7 @@ bool Heap::CollectGarbage(AllocationSpace space,
(committed_memory_before > committed_memory_after + MB) ||
HasHighFragmentation(used_memory_after, committed_memory_after);
event.committed_memory = committed_memory_after;
if (deserialization_complete_) {
memory_reducer_->NotifyMarkCompact(event);
}
memory_reducer_->NotifyMarkCompact(event);
if (initial_max_old_generation_size_ < max_old_generation_size() &&
used_memory_after < initial_max_old_generation_size_threshold_) {
set_max_old_generation_size(initial_max_old_generation_size_);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment