Commit eaf7ec9d authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

[heap] Process strong fields of maps in concurrent marker.

Bug: chromium:694255
TBR: mlippautz@chromium.org
Change-Id: I207fd28c2e19637f45da3735284c8ca223b33481
Reviewed-on: https://chromium-review.googlesource.com/610562Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47333}
parent 5c156de3
...@@ -188,9 +188,21 @@ class ConcurrentMarkingVisitor final ...@@ -188,9 +188,21 @@ class ConcurrentMarkingVisitor final
return size; return size;
} }
int VisitMap(Map* map, Map* object) { int VisitMap(Map* meta_map, Map* map) {
// TODO(ulan): implement iteration of strong fields. if (marking_state_.IsGrey(map)) {
bailout_.Push(object); // Maps have ad-hoc weakness for descriptor arrays. They also clear the
// code-cache. Conservatively visit strong fields skipping the
// descriptor array field and the code cache field.
VisitMapPointer(map, map->map_slot());
VisitPointer(map, HeapObject::RawField(map, Map::kPrototypeOffset));
VisitPointer(
map, HeapObject::RawField(map, Map::kConstructorOrBackPointerOffset));
VisitPointer(map, HeapObject::RawField(
map, Map::kTransitionsOrPrototypeInfoOffset));
VisitPointer(map, HeapObject::RawField(map, Map::kDependentCodeOffset));
VisitPointer(map, HeapObject::RawField(map, Map::kWeakCellCacheOffset));
bailout_.Push(map);
}
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment