Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index b75c6f7bc6083d0990089dd6f3aec50e6b057b99..b4aecc28065a0014ebe69b076d01184d4e5efcc3 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -952,7 +952,7 @@ bool Heap::CollectGarbage(GarbageCollector collector, const char* gc_reason, |
isolate()->CheckDetachedContextsAfterGC(); |
} |
- if (collector == MARK_COMPACTOR) { |
+ if (collector == MARK_COMPACTOR && deserialization_complete_) { |
intptr_t committed_memory_after = CommittedOldGenerationMemory(); |
intptr_t used_memory_after = PromotedSpaceSizeOfObjects(); |
MemoryReducer::Event event; |