diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc index 8539596a62..0c9eeff004 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();