| Index: src/spaces.cc
|
| diff --git a/src/spaces.cc b/src/spaces.cc
|
| index e7cb8ccf85254003af635e44c2fe81d582e2b926..4f4c68db844fe2be2cf2569b84de4d215ece0a71 100644
|
| --- a/src/spaces.cc
|
| +++ b/src/spaces.cc
|
| @@ -2578,13 +2578,12 @@ void PagedSpace::EvictEvacuationCandidatesFromFreeLists() {
|
| }
|
|
|
|
|
| -HeapObject* PagedSpace::EnsureSweepingProgress(
|
| - int size_in_bytes) {
|
| +HeapObject* PagedSpace::EnsureSweepingProgress(intptr_t size_in_bytes) {
|
| MarkCompactCollector* collector = heap()->mark_compact_collector();
|
|
|
| if (collector->IsConcurrentSweepingInProgress(this)) {
|
| // If sweeping is still in progress try to sweep pages on the main thread.
|
| - int free_chunk =
|
| + intptr_t free_chunk =
|
| collector->SweepInParallel(this, size_in_bytes);
|
| if (free_chunk >= size_in_bytes) {
|
| HeapObject* object = free_list_.Allocate(size_in_bytes);
|
|
|