Index: src/spaces.cc |
=================================================================== |
--- src/spaces.cc (revision 2673) |
+++ src/spaces.cc (working copy) |
@@ -1076,7 +1076,7 @@ |
bool SemiSpace::Grow() { |
// Commit 50% extra space but only up to maximum capacity. |
- int extra = capacity_/2; |
+ int extra = RoundUp(capacity_/2, OS::AllocateAlignment()); |
if (capacity_ + extra > maximum_capacity_) { |
extra = maximum_capacity_ - capacity_; |
} |