| Index: src/heap/objects-visiting-inl.h
|
| diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
|
| index 010bbfa1e5107be4b075124f894ff66645784c03..104c60900d04a40b8bdbf5dd4a152663ba67e46f 100644
|
| --- a/src/heap/objects-visiting-inl.h
|
| +++ b/src/heap/objects-visiting-inl.h
|
| @@ -233,7 +233,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCell(Heap* heap,
|
| RelocInfo* rinfo) {
|
| DCHECK(rinfo->rmode() == RelocInfo::CELL);
|
| Cell* cell = rinfo->target_cell();
|
| - // No need to record slots because the cell space is not compacted during GC.
|
| + heap->mark_compact_collector()->RecordRelocSlot(rinfo, cell);
|
| if (!rinfo->host()->IsWeakObject(cell)) {
|
| StaticVisitor::MarkObject(heap, cell);
|
| }
|
|
|