Changeset 244489 in webkit
- Timestamp:
- Apr 20, 2019 12:16:22 PM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r244441 r244489 1 2019-04-19 Ryosuke Niwa <rniwa@webkit.org> 2 3 HashTable::removeIf always shrinks the hash table by half even if there is nothing left 4 https://bugs.webkit.org/show_bug.cgi?id=196681 5 <rdar://problem/49917764> 6 7 Reviewed by Darin Adler. 8 9 Address Darin's comments by removing the explicit type from std::max. 10 11 * wtf/HashTable.h: 12 (WTF::KeyTraits>::computeBestTableSize): 13 (WTF::KeyTraits>::shrinkToBestSize): 14 1 15 2019-04-18 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WTF/wtf/HashTable.h
r244289 r244489 1211 1211 1212 1212 unsigned minimumTableSize = KeyTraits::minimumTableSize; 1213 return std::max <unsigned>(bestTableSize, minimumTableSize);1213 return std::max(bestTableSize, minimumTableSize); 1214 1214 } 1215 1215 … … 1218 1218 { 1219 1219 unsigned minimumTableSize = KeyTraits::minimumTableSize; 1220 rehash(std::max <unsigned>(minimumTableSize, computeBestTableSize(m_keyCount)), nullptr);1220 rehash(std::max(minimumTableSize, computeBestTableSize(m_keyCount)), nullptr); 1221 1221 } 1222 1222
Note: See TracChangeset
for help on using the changeset viewer.