[heap] Also mark map when iterating black objects.

BUG=chromium:630386

Review-Url: https://codereview.chromium.org/2240123002
Cr-Commit-Position: refs/heads/master@{#38609}
This commit is contained in:
hpayer 2016-08-12 04:08:00 -07:00 committed by Commit bot
parent 20e2ea80e1
commit 22b931f882

View File

@ -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);
}
}