Changeset 249948 in webkit
- Timestamp:
- Sep 17, 2019 1:14:29 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r249947 r249948 1 2019-09-17 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Keeps running obsolete WebProcess-es for too long 4 https://bugs.webkit.org/show_bug.cgi?id=201492 5 6 Reviewed by Chris Dumez. 7 8 That's how the web process cache is expected to work, but it's true that it probably only makes sense to use it 9 when cache model is primary web browser. 10 11 * UIProcess/WebProcessCache.cpp: 12 (WebKit::WebProcessCache::updateCapacity): Disable the web process cache when cache model is not primary web browser. 13 1 14 2019-09-17 Carlos Garcia Campos <cgarcia@igalia.com> 2 15 -
trunk/Source/WebKit/UIProcess/WebProcessCache.cpp
r249341 r249948 151 151 void WebProcessCache::updateCapacity(WebProcessPool& processPool) 152 152 { 153 if (!processPool.configuration().processSwapsOnNavigation() || !processPool.configuration().usesWebProcessCache() ) {153 if (!processPool.configuration().processSwapsOnNavigation() || !processPool.configuration().usesWebProcessCache() || processPool.cacheModel() != CacheModel::PrimaryWebBrowser) { 154 154 if (!processPool.configuration().processSwapsOnNavigation()) 155 155 RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache is disabled because process swap on navigation is disabled", this); 156 else if (!processPool.configuration().usesWebProcessCache()) 157 RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache is disabled by client", this); 156 158 else 157 RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache is disabled b y client", this);159 RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache is disabled because cache model is not PrimaryWebBrowser", this); 158 160 m_capacity = 0; 159 161 } else {
Note: See TracChangeset
for help on using the changeset viewer.