Reviewers: Hannes Payer,
Description:
Make VerifyMarking work in the presence of grey objects
[email protected]
LOG=n
BUG=none
Please review this at https://codereview.chromium.org/990203002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+4, -0 lines):
M src/heap/mark-compact.cc
Index: src/heap/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index
44262e42b162b58974cf7b2092ea141047856d2a..ab248476165e5dbd1d9d3083e7c7cb1c8b934279
100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -102,6 +102,10 @@ static void VerifyMarking(Heap* heap, Address bottom,
Address top) {
CHECK(current >= next_object_must_be_here_or_later);
object->Iterate(&visitor);
next_object_must_be_here_or_later = current + object->Size();
+ // Take into account that a marked objected is at least two pointers
in
+ // size. If we don't skip one word, the next word gets detected as an
+ // object as well.
+ current += kPointerSize;
}
}
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.