| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 5806ce10161a83f50a92502d438bd0a2f64fb321..c59a8d3d373eeb6e43d66c9c1cfa03313add697f 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -3122,14 +3122,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();
|
| }
|
|
|
|
|
|
|