Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index e0b312067fc5c38013c36d76da9f69beae64c4a4..19caf509ebe31a77a17d96785701b5d0a103c9b1 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -574,6 +574,9 @@ void Heap::GarbageCollectionEpilogue() { |
ZapFromSpace(); |
} |
+ // Process pretenuring feedback and update allocation sites. |
+ ProcessPretenuringFeedback(); |
+ |
#ifdef VERIFY_HEAP |
if (FLAG_verify_heap) { |
Verify(); |
@@ -1617,8 +1620,6 @@ void Heap::Scavenge() { |
IncrementYoungSurvivorsCounter(static_cast<int>( |
(PromotedSpaceSizeOfObjects() - survived_watermark) + new_space_.Size())); |
- ProcessPretenuringFeedback(); |
- |
LOG(isolate_, ResourceEvent("scavenge", "end")); |
gc_state_ = NOT_IN_GC; |