Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 43720a4449c73df495ddcc6d8f1b1bbd15a27e3b..ac595e6f5fb8d7b800dc22248d61549718e890d1 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2549,13 +2549,6 @@ |
if (!MarkCompactCollector::IsMarked(key)) { |
table->RemoveEntry(i); |
} |
- } |
- // Rehash if more than 25% of the entries are deleted entries. |
- // TODO(jochen): Consider to shrink the fixed array in place. |
- if ((table->NumberOfDeletedElements() << kJSWeakCollectionLoadFactorExp) > |
- table->NumberOfElements()) { |
- HandleScope scope(heap()->isolate()); |
- table->Rehash(heap()->isolate()->factory()->undefined_value()); |
} |
} |
weak_collection_obj = weak_collection->next(); |