From 34c43513a34db5b01b12d220f0c9a9d870a470da Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 9 Mar 2015 08:01:34 -0700 Subject: [PATCH] Make VerifyMarking work in the presence of grey objects R=hpayer@chromium.org LOG=n BUG=none Review URL: https://codereview.chromium.org/990203002 Cr-Commit-Position: refs/heads/master@{#27079} --- src/heap/mark-compact.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc index 8539596a6..0c9eeff00 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(); -- 2.34.1