HashTable::removeIf always shrinks the hash table by half even if there is nothing...
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Apr 2019 19:16:22 +0000 (19:16 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Apr 2019 19:16:22 +0000 (19:16 +0000)
commit37c1468f5b5df5da49fbd78be0a2a9727987f584
tree08f3b26a45cedaa71e81c586504a2350bb16711c
parentfdd4ff82c955b78b5b9ac9d3328469b1107c7036
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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/HashTable.h