Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 6f81bebb1feaf55e22d37c8291eb94b163e5a902..931206ff43538020c457e9b98d18484e5ac69db2 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -3138,6 +3138,7 @@ bool MarkCompactCollector::IsSlotInBlackObject(Page* p, Address slot, |
cell_base += (start_index - cell_base_start_index) * 32 * kPointerSize; |
Address address = cell_base + offset * kPointerSize; |
HeapObject* object = HeapObject::FromAddress(address); |
+ CHECK(Marking::IsBlack(Marking::MarkBitFrom(object))); |
CHECK(object->address() < reinterpret_cast<Address>(slot)); |
if (object->address() <= slot && |
(object->address() + object->Size()) > slot) { |