| Index: src/heap/spaces.cc
|
| diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
|
| index 457fd19c111fa0271e1d9f76f5491b5de5339c1c..2aa0c21eb6d39692ee824b8a3aa5d682f2dc06e7 100644
|
| --- a/src/heap/spaces.cc
|
| +++ b/src/heap/spaces.cc
|
| @@ -2752,15 +2752,10 @@ HeapObject* PagedSpace::SlowAllocateRaw(int size_in_bytes) {
|
| if (object != NULL) return object;
|
|
|
| // If sweeping is still in progress try to sweep pages on the main thread.
|
| - int free_chunk = collector->SweepInParallel(this, size_in_bytes);
|
| + collector->SweepInParallel(heap()->paged_space(identity()), size_in_bytes);
|
| RefillFreeList();
|
| - if (free_chunk >= size_in_bytes) {
|
| - HeapObject* object = free_list_.Allocate(size_in_bytes);
|
| - // We should be able to allocate an object here since we just freed that
|
| - // much memory.
|
| - DCHECK(object != NULL);
|
| - if (object != NULL) return object;
|
| - }
|
| + object = free_list_.Allocate(size_in_bytes);
|
| + if (object != nullptr) return object;
|
| }
|
|
|
| // Free list allocation failed and there is no next page. Fail if we have
|
|
|