Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 217c27b1349d40b1d2ea9d59357b86065804c376..ab82d2b74098fcabcb660a6cfa0c51f2185b837d 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1733,7 +1733,8 @@ void Heap::Scavenge() { |
DCHECK(new_space_front == new_space_->top()); |
- new_space_->SealIntermediateGeneration(); |
+ // Set age mark. |
+ new_space_->set_age_mark(new_space_->top()); |
ArrayBufferTracker::FreeDeadInNewSpace(this); |
@@ -5082,6 +5083,7 @@ bool Heap::ConfigureHeap(int max_semi_space_size, int max_old_space_size, |
} |
initial_semispace_size_ = Min(initial_semispace_size_, max_semi_space_size_); |
+ |
if (FLAG_semi_space_growth_factor < 2) { |
FLAG_semi_space_growth_factor = 2; |
} |