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 166090 59608352c11e4e5a029d49a9ce3b6a9d65be48c2
parent 166048 1e0e616739c9b7a1a69dc1592c6383a407c6dba4
child 166091 5615aa677b90c80d102d35d5a0fe013aad75851c
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [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();
         }
     }
 }