Skip to content

Commit 686558d

Browse files
jeisingerCommit bot
authored andcommitted
Fix comment about when we rehash ObjectHashTables before growing them
R=ulan@chromium.org BUG= Review-Url: https://codereview.chromium.org/1918403003 Cr-Commit-Position: refs/heads/master@{#35853}
1 parent b7be3cf commit 686558d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objects.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17929,7 +17929,7 @@ Handle<ObjectHashTable> ObjectHashTable::Put(Handle<ObjectHashTable> table,
1792917929
return table;
1793017930
}
1793117931

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

0 commit comments

Comments
 (0)