| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index c468ca4d87ff8964e4a8c9fbaf8d0854571b335c..7ddd905877ab388a723d183b81506e126e2d6be9 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -2381,7 +2381,7 @@ class SemiSpace : public Space {
|
| // Resets the space to using the first page.
|
| void Reset();
|
|
|
| - void ReplaceWithEmptyPage(Page* page);
|
| + bool ReplaceWithEmptyPage(Page* page);
|
|
|
| // Age mark accessors.
|
| Address age_mark() { return age_mark_; }
|
| @@ -2603,10 +2603,10 @@ class NewSpace : public Space {
|
|
|
| inline size_t AllocatedSinceLastGC();
|
|
|
| - void ReplaceWithEmptyPage(Page* page) {
|
| + bool ReplaceWithEmptyPage(Page* page) {
|
| // This method is called after flipping the semispace.
|
| DCHECK(page->InFromSpace());
|
| - from_space_.ReplaceWithEmptyPage(page);
|
| + return from_space_.ReplaceWithEmptyPage(page);
|
| }
|
|
|
| // Return the maximum capacity of a semispace.
|
|
|