Skip to content

Commit

Permalink
Fix comment about when we rehash ObjectHashTables before growing them
Browse files Browse the repository at this point in the history
R=ulan@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/1918403003
Cr-Commit-Position: refs/heads/master@{#35853}
  • Loading branch information
jeisinger authored and Commit bot committed Apr 28, 2016
1 parent b7be3cf commit 686558d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17929,7 +17929,7 @@ Handle<ObjectHashTable> ObjectHashTable::Put(Handle<ObjectHashTable> table,
return table;
}

// Rehash if more than 25% of the entries are deleted entries.
// Rehash if more than 33% of the entries are deleted entries.
// TODO(jochen): Consider to shrink the fixed array in place.
if ((table->NumberOfDeletedElements() << 1) > table->NumberOfElements()) {
table->Rehash(isolate->factory()->undefined_value());
Expand Down

0 comments on commit 686558d

Please sign in to comment.