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}
This commit is contained in:
parent
0f6702562e
commit
34c43513a3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user