HashTable::removeIf always shrinks the hash table by half even if there is nothing...
[WebKit-https.git] / Source / WTF / ChangeLog
index d9914fc..5c29b20 100644 (file)
@@ -1,3 +1,17 @@
+2019-04-19  Ryosuke Niwa  <rniwa@webkit.org>
+
+        HashTable::removeIf always shrinks the hash table by half even if there is nothing left
+        https://bugs.webkit.org/show_bug.cgi?id=196681
+        <rdar://problem/49917764>
+
+        Reviewed by Darin Adler.
+
+        Address Darin's comments by removing the explicit type from std::max.
+
+        * wtf/HashTable.h:
+        (WTF::KeyTraits>::computeBestTableSize):
+        (WTF::KeyTraits>::shrinkToBestSize):
+
 2019-04-18  Chris Dumez  <cdumez@apple.com>
 
         [iOS] Improve detection of when web views go to background / foreground