Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 3e5dafe345a481f08f88f20fd971db40e8894af7..fa55649db2f6de4e9ca362b093d86356a68bbbc8 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1571,7 +1571,8 @@ class MarkCompactCollector::EvacuateNewSpaceVisitor final |
local_pretenuring_feedback_(local_pretenuring_feedback) {} |
bool Visit(HeapObject* object) override { |
- heap_->UpdateAllocationSite(object, local_pretenuring_feedback_); |
+ heap_->UpdateAllocationSite<Heap::kCached>(object, |
+ local_pretenuring_feedback_); |
int size = object->Size(); |
HeapObject* target_object = nullptr; |
if (heap_->ShouldBePromoted(object->address(), size) && |