Chromium Code Reviews| Index: src/spaces.cc |
| diff --git a/src/spaces.cc b/src/spaces.cc |
| index adfb74a4efeabf9868a7be678c15dcb6b4603141..0f48afd840c4868263d2923627b3663c721ed364 100644 |
| --- a/src/spaces.cc |
| +++ b/src/spaces.cc |
| @@ -947,6 +947,7 @@ void NewSpace::Shrink() { |
| if (rounded_new_capacity < Capacity() && |
| to_space_.ShrinkTo(rounded_new_capacity)) { |
| // Only shrink from space if we managed to shrink to space. |
| + from_space_.Reset(); |
|
Lasse Reichstein
2011/09/20 13:28:38
Could you change "from space" to "from-space" in t
Michael Starzinger
2011/09/20 13:34:17
Done.
|
| if (!from_space_.ShrinkTo(rounded_new_capacity)) { |
| // If we managed to shrink to space but couldn't shrink from |
| // space, attempt to grow to space again. |