 Chromium Code Reviews
 Chromium Code Reviews Issue 150017:
  Changed  HashTable::EnsureCapacity to gurantee at least 50% of the entries ar...  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
    
  
    Issue 150017:
  Changed  HashTable::EnsureCapacity to gurantee at least 50% of the entries ar...  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/| Index: src/objects.cc | 
| =================================================================== | 
| --- src/objects.cc (revision 2283) | 
| +++ src/objects.cc (working copy) | 
| @@ -6357,8 +6357,8 @@ | 
| int n, HashTableKey* key) { | 
| int capacity = Capacity(); | 
| int nof = NumberOfElements() + n; | 
| - // Make sure 25% is free | 
| - if (nof + (nof >> 2) <= capacity) return this; | 
| + // Make sure 50% is free | 
| + if (nof + (nof >> 1) <= capacity) return this; | 
| Object* obj = Allocate(nof * 2); | 
| if (obj->IsFailure()) return obj; |