Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index e724ea420a4cd9c5fe77e83c0c03df291ad5a01a..57bfbbc5c7e5c07d38e53f6e297c8a21b2b12014 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1611,6 +1611,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 |