Properly reset deleted count when clearing HashTables.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 20:23:52 +0000 (20:23 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 20:23:52 +0000 (20:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=144343

Reviewed by Andreas Kling.

* wtf/HashTable.h:
(WTF::KeyTraits>::clear):
Reset m_deletedCount, which appears to have been forgotten.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183504 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/HashTable.h

index 7cbc9df..0b94988 100644 (file)
@@ -1,5 +1,16 @@
 2015-04-28  Alex Christensen  <achristensen@webkit.org>
 
+        Properly reset deleted count when clearing HashTables.
+        https://bugs.webkit.org/show_bug.cgi?id=144343
+
+        Reviewed by Andreas Kling.
+
+        * wtf/HashTable.h:
+        (WTF::KeyTraits>::clear):
+        Reset m_deletedCount, which appears to have been forgotten.
+
+2015-04-28  Alex Christensen  <achristensen@webkit.org>
+
         [Content Extensions] Use less memory for CombinedURLFilters.
         https://bugs.webkit.org/show_bug.cgi?id=144290
 
index 4dc0b0a..1454512 100644 (file)
@@ -1150,6 +1150,7 @@ namespace WTF {
         m_tableSize = 0;
         m_tableSizeMask = 0;
         m_keyCount = 0;
+        m_deletedCount = 0;
     }
 
     template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits>