Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 8ce59d53a339ac2a3f990d0ca8321fd7de8a1d62..6b098a3f5bd187e3cec25be32bd55fe5df45e5aa 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3083,14 +3083,8 @@ bool Heap::CanMoveObjectStart(HeapObject* object) { |
if (lo_space()->Contains(object)) return false; |
- Page* page = Page::FromAddress(address); |
- // We can move the object start if: |
- // (1) the object is not in old space, |
- // (2) the page of the object was already swept, |
- // (3) the page was already concurrently swept. This case is an optimization |
- // for concurrent sweeping. The WasSwept predicate for concurrently swept |
- // pages is set after sweeping all pages. |
- return !InOldSpace(object) || page->SweepingDone(); |
+ // We can move the object start if the page was already swept. |
+ return Page::FromAddress(address)->SweepingDone(); |
} |