Changeset 184720 in webkit
- Timestamp:
- May 21, 2015 10:45:21 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r184719 r184720 1 2015-05-21 Chris Dumez <cdumez@apple.com> 2 3 Regression(r179293): We no longer call destroyDecodedData() on CachedResources on memory pressure 4 https://bugs.webkit.org/show_bug.cgi?id=145270 5 <rdar://problem/20734901> 6 7 Reviewed by Andreas Kling. 8 9 We no longer call destroyDecodedData() on CachedResources on memory 10 pressure after r179293. In r179293, we started calling 11 MemoryCache::evictResources() on memory pressure instead of 12 MemoryCache::pruneToPercentage(0). However, unlike 13 MemoryCache::pruneToPercentage(), it appears 14 MemoryCache::evictResources() removes the CachedResources from the 15 memory cache without calling destroyDecodedData() on them. 16 This caused a regression on Membuster. 17 18 This patch now calls MemoryCache::pruneLiveResourcesToSize(0) on 19 critical memory pressure, instead of evictResources(). We don't need to 20 call pruneDeadResourcesToSize(0) here because the non-critical memory 21 pressure handler already takes care of this. 22 23 During local testing, this change seemed to decrease the overall memory 24 usage of WebProcesses by ~10MB on Membuster (tested on Yosemite). 25 26 * platform/MemoryPressureHandler.cpp: 27 (WebCore::MemoryPressureHandler::releaseNoncriticalMemory): 28 (WebCore::MemoryPressureHandler::releaseCriticalMemory): 29 1 30 2015-05-21 Said Abou-Hallawa <sabouhallawa@apple.com> 2 31 -
trunk/Source/WebCore/platform/MemoryPressureHandler.cpp
r184041 r184720 96 96 97 97 { 98 ReliefLogger log(" EvictMemoryCache dead resources");98 ReliefLogger log("Prune MemoryCache dead resources"); 99 99 MemoryCache::singleton().pruneDeadResourcesToSize(0); 100 100 } … … 111 111 112 112 { 113 ReliefLogger log(" Evict all MemoryCache resources");114 MemoryCache::singleton(). evictResources();113 ReliefLogger log("Prune MemoryCache live resources"); 114 MemoryCache::singleton().pruneLiveResourcesToSize(0); 115 115 } 116 116
Note: See TracChangeset
for help on using the changeset viewer.