| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index 6df3fe7876cf42baccbc2d7097e20ba59a6c31b4..04dcdd2110471f617d251cde6b9b5b75695e3e8b 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -2121,8 +2121,7 @@ class PagedSpace : public Space {
|
| // If sweeping is still in progress try to sweep unswept pages. If that is
|
| // not successful, wait for the sweeper threads and re-try free-list
|
| // allocation.
|
| - MUST_USE_RESULT HeapObject* WaitForSweeperThreadsAndRetryAllocation(
|
| - int size_in_bytes);
|
| + MUST_USE_RESULT virtual HeapObject* SweepAndRetry(int size_in_bytes);
|
|
|
| // Slow path of AllocateRaw. This function is space-dependent.
|
| MUST_USE_RESULT HeapObject* SlowAllocateRaw(int size_in_bytes);
|
| @@ -2838,6 +2837,8 @@ class CompactionSpace : public PagedSpace {
|
| protected:
|
| // The space is temporary and not included in any snapshots.
|
| virtual bool snapshotable() override { return false; }
|
| +
|
| + MUST_USE_RESULT virtual HeapObject* SweepAndRetry(int size_in_bytes) override;
|
| };
|
|
|
|
|
|
|