| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 97445a61e69094bb6b2a30c72ba561f704f132d9..ff64724b56ba85f0ac159746b46d4ee2ed311b31 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -1282,8 +1282,8 @@ static void VerifyNonPointerSpacePointers(Heap* heap) {
|
|
|
|
|
| void Heap::CheckNewSpaceExpansionCriteria() {
|
| - if (new_space_.Capacity() < new_space_.MaximumCapacity() &&
|
| - survived_since_last_expansion_ > new_space_.Capacity()) {
|
| + if (new_space_.TotalCapacity() < new_space_.MaximumCapacity() &&
|
| + survived_since_last_expansion_ > new_space_.TotalCapacity()) {
|
| // Grow the size of new space if there is room to grow, enough data
|
| // has survived scavenge since the last expansion and we are not in
|
| // high promotion mode.
|
|
|