Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 009f4ca284236aa990106552e159f0d151007dde..b420cb728c0a401c5c4a93187ddce12b6cc42c38 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -541,6 +541,7 @@ void IncrementalMarking::StartMarking() { |
void IncrementalMarking::MarkObjectGroups() { |
DCHECK(FLAG_overapproximate_weak_closure); |
DCHECK(!weak_closure_was_overapproximated_); |
+ DCHECK(IsMarking()); |
int old_marking_deque_top = |
heap_->mark_compact_collector()->marking_deque()->top(); |