Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 36161ae8eba798f4c4653c179654eacf1deda332..04d41fbd9fa553469b48441a50cb6c7212edcda0 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1612,6 +1612,8 @@ void Heap::Scavenge() { |
// Pause the inline allocation steps. |
PauseAllocationObserversScope pause_observers(this); |
+ mark_compact_collector()->sweeper().EnsureNewSpaceCompleted(); |
+ |
#ifdef VERIFY_HEAP |
if (FLAG_verify_heap) VerifyNonPointerSpacePointers(this); |
#endif |