Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: src/heap/spaces.cc

Issue 2876503002: [heap] Reland "Verify remembered set for objects in the old generation." (Closed)
Patch Set: fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index db8fb4b7d066bb67c6454827b3570cad811e77d7..8f75e14b788cac4e31459caed1cc58243f0280fd 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -1569,6 +1569,8 @@ void PagedSpace::Verify(ObjectVisitor* visitor) {
// The object itself should look OK.
object->ObjectVerify();
+ heap()->VerifyRememberedSetFor(object);
+
// All the interior pointers should be contained in the heap.
int size = object->Size();
object->IterateBody(map->instance_type(), size, visitor);
@@ -3321,6 +3323,8 @@ void LargeObjectSpace::Verify() {
// The object itself should look OK.
object->ObjectVerify();
+ heap()->VerifyRememberedSetFor(object);
+
// Byte arrays and strings don't have interior pointers.
if (object->IsAbstractCode()) {
VerifyPointersVisitor code_visitor;
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698