Index: src/heap/scavenger-inl.h |
diff --git a/src/heap/scavenger-inl.h b/src/heap/scavenger-inl.h |
index 007c29703d2b52442e792a9d2682adb15f3b247a..cd35c7d7e3378bd9ebe750e7c73d5c2ddd2f76bd 100644 |
--- a/src/heap/scavenger-inl.h |
+++ b/src/heap/scavenger-inl.h |
@@ -28,7 +28,8 @@ void Scavenger::ScavengeObject(HeapObject** p, HeapObject* object) { |
return; |
} |
- Heap::UpdateAllocationSiteFeedback(object, Heap::IGNORE_SCRATCHPAD_SLOT); |
+ object->GetHeap()->UpdateAllocationSite( |
+ object, object->GetHeap()->global_pretenuring_feedback_); |
// AllocationMementos are unrooted and shouldn't survive a scavenge |
DCHECK(object->map() != object->GetHeap()->allocation_memento_map()); |