| Index: src/objects.cc
|
| ===================================================================
|
| --- src/objects.cc (revision 3993)
|
| +++ src/objects.cc (working copy)
|
| @@ -6945,9 +6945,9 @@
|
| int nof = NumberOfElements() + n;
|
| int nod = NumberOfDeletedElements();
|
| // Return if:
|
| - // 50% is still free after adding n elements and
|
| + // 25% is still free after adding n elements and
|
| // at most 50% of the free elements are deleted elements.
|
| - if ((nof + (nof >> 1) <= capacity) &&
|
| + if ((nof + (nof >> 2) <= capacity) &&
|
| (nod <= (capacity - nof) >> 1)) return this;
|
|
|
| Object* obj = Allocate(nof * 2);
|
|
|