Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 44262e42b162b58974cf7b2092ea141047856d2a..f32cee065331a852ae8d8687b01e4cb2b7b56aa0 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -99,6 +99,7 @@ static void VerifyMarking(Heap* heap, Address bottom, Address top) { |
for (Address current = bottom; current < top; current += kPointerSize) { |
object = HeapObject::FromAddress(current); |
if (MarkCompactCollector::IsMarked(object)) { |
+ CHECK(Marking::IsBlack(Marking::MarkBitFrom(object))); |
CHECK(current >= next_object_must_be_here_or_later); |
object->Iterate(&visitor); |
next_object_must_be_here_or_later = current + object->Size(); |