Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index d72423a60aa81619516404c2995ebc26df4e60a2..8a1c25b709d431b0e82ec70a0bbc070fef5e74e7 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -439,8 +439,8 @@ bool IncrementalMarking::WorthActivating() { |
// 3) when we are currently not serializing or deserializing the heap. |
return FLAG_incremental_marking && FLAG_incremental_marking_steps && |
heap_->gc_state() == Heap::NOT_IN_GC && |
+ heap_->deserialization_complete() && |
!heap_->isolate()->serializer_enabled() && |
- heap_->isolate()->IsInitialized() && |
heap_->PromotedSpaceSizeOfObjects() > kActivationThreshold; |
} |
@@ -516,7 +516,6 @@ void IncrementalMarking::Start(CompactionFlag flag) { |
DCHECK(state_ == STOPPED); |
DCHECK(heap_->gc_state() == Heap::NOT_IN_GC); |
DCHECK(!heap_->isolate()->serializer_enabled()); |
- DCHECK(heap_->isolate()->IsInitialized()); |
ResetStepCounters(); |