Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 52e1706b82ac3637625f155c558f640c08362c23..2b532c603b68b063b5388995e81b875a3ecf3d56 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2157,7 +2157,8 @@ void MarkCompactCollector::ProcessEphemeralMarking( |
work_to_do = !marking_deque()->IsEmpty(); |
ProcessMarkingDeque<MarkCompactMode::FULL>(); |
} |
- CHECK(heap_->MarkingDequesAreEmpty()); |
+ CHECK(marking_deque()->IsEmpty()); |
+ CHECK_EQ(0, heap()->local_embedder_heap_tracer()->NumberOfWrappersToTrace()); |
} |
void MarkCompactCollector::ProcessTopOptimizedFrame(ObjectVisitor* visitor) { |