Changeset 244655 in webkit


Ignore:
Timestamp:
Apr 25, 2019 11:49:00 AM (5 years ago)
Author:
beidson@apple.com
Message:

REGRESSION (243388): WebProcess::shouldFreezeOnSuspension() decision is flipped
<rdar://problem/49755494> and https://bugs.webkit.org/show_bug.cgi?id=197284

Reviewed by Chris Dumez.

  • WebProcess/cocoa/WebProcessCocoa.mm:

(WebKit::WebProcess::shouldFreezeOnSuspension const): If any non-suspended pages are in the process it should

be eligible. Only if all pages are suspended should it be jetsam-able.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244653 r244655  
     12019-04-25  Brady Eidson  <beidson@apple.com>
     2
     3        REGRESSION (243388): WebProcess::shouldFreezeOnSuspension() decision is flipped
     4        <rdar://problem/49755494> and https://bugs.webkit.org/show_bug.cgi?id=197284
     5
     6        Reviewed by Chris Dumez.
     7
     8        * WebProcess/cocoa/WebProcessCocoa.mm:
     9        (WebKit::WebProcess::shouldFreezeOnSuspension const): If any non-suspended pages are in the process it should
     10          be eligible. Only if all pages are suspended should it be jetsam-able.
     11
    1122019-04-25  Alex Christensen  <achristensen@webkit.org>
    213
  • trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

    r244091 r244655  
    734734    for (auto& page : m_pageMap.values()) {
    735735        if (!page->isSuspended())
    736             return false;
    737     }
    738 
    739     return true;
     736            return true;
     737    }
     738
     739    // Since all of the pages in this process were suspended, we should not bother freezing it.
     740    return false;
    740741}
    741742
Note: See TracChangeset for help on using the changeset viewer.