Bug 929025: Reset the cache fullness counter of the favicon cache when evictAll is called r=rnewman
authorChris Kitching <chriskitching@linux.com>
Tue, 22 Oct 2013 01:08:00 +0100
changeset 167042 59608352c11e4e5a029d49a9ce3b6a9d65be48c2
parent 167000 1e0e616739c9b7a1a69dc1592c6383a407c6dba4
child 167043 5615aa677b90c80d102d35d5a0fe013aad75851c
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs929025
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 929025: Reset the cache fullness counter of the favicon cache when evictAll is called r=rnewman
mobile/android/base/favicons/cache/FaviconCache.java
--- a/mobile/android/base/favicons/cache/FaviconCache.java
+++ b/mobile/android/base/favicons/cache/FaviconCache.java
@@ -626,15 +626,16 @@ public class FaviconCache {
 
     /**
      * Purge all elements from the FaviconCache. Handy if you want to reclaim some memory.
      */
     public void evictAll() {
         startWrite();
 
         try {
+            mCurrentSize.set(0);
             mBackingMap.clear();
             mOrdering.clear();
         } finally {
             finishWrite();
         }
     }
 }