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

Unified Diff: src/heap/incremental-marking.cc

Issue 2240123002: [heap] Also mark map when iterating black objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: move map marking out Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/incremental-marking.cc
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc
index ec7594159ba63476e2cb69db8fb4876991eb4506..0c0f5b408ee5ae573dcdc8f533e7ad9d3987f620 100644
--- a/src/heap/incremental-marking.cc
+++ b/src/heap/incremental-marking.cc
@@ -310,7 +310,9 @@ void IncrementalMarking::IterateBlackObject(HeapObject* object) {
// IterateBlackObject requires us to visit the whole object.
page->ResetProgressBar();
}
- IncrementalMarkingMarkingVisitor::IterateBody(object->map(), object);
+ Map* map = object->map();
+ MarkGrey(heap_, map);
+ IncrementalMarkingMarkingVisitor::IterateBody(map, object);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698