Changeset 249948 in webkit


Ignore:
Timestamp:
Sep 17, 2019 1:14:29 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

Keeps running obsolete WebProcess-es for too long
https://bugs.webkit.org/show_bug.cgi?id=201492

Reviewed by Chris Dumez.

That's how the web process cache is expected to work, but it's true that it probably only makes sense to use it
when cache model is primary web browser.

  • UIProcess/WebProcessCache.cpp:

(WebKit::WebProcessCache::updateCapacity): Disable the web process cache when cache model is not primary web browser.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r249947 r249948  
     12019-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
    1142019-09-17  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/WebKit/UIProcess/WebProcessCache.cpp

    r249341 r249948  
    151151void WebProcessCache::updateCapacity(WebProcessPool& processPool)
    152152{
    153     if (!processPool.configuration().processSwapsOnNavigation() || !processPool.configuration().usesWebProcessCache()) {
     153    if (!processPool.configuration().processSwapsOnNavigation() || !processPool.configuration().usesWebProcessCache() || processPool.cacheModel() != CacheModel::PrimaryWebBrowser) {
    154154        if (!processPool.configuration().processSwapsOnNavigation())
    155155            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);
    156158        else
    157             RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache is disabled by client", this);
     159            RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache is disabled because cache model is not PrimaryWebBrowser", this);
    158160        m_capacity = 0;
    159161    } else {
Note: See TracChangeset for help on using the changeset viewer.