[webkit-changes] [WebKit/WebKit] 3e3aff: [macOS] Use cleanup timer when suspending web cont...

Miguel Salinas noreply at github.com
Tue Mar 7 20:06:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3e3affb5f89da96db5089433656cfbe4aa5903d6
      https://github.com/WebKit/WebKit/commit/3e3affb5f89da96db5089433656cfbe4aa5903d6
  Author: Miguel Salinas <miguel_salinas at apple.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M Source/WebKit/WebProcess/WebProcess.cpp

  Log Message:
  -----------
  [macOS] Use cleanup timer when suspending web content process
https://bugs.webkit.org/show_bug.cgi?id=253527
rdar://problem/106376732

Reviewed by Chris Dumez.

We should use the m_nonVisibleProcessMemoryCleanupTimer to cleanup unnecessary memory on suspension instead of immediately cleaning up. This fixes a plt regression for warm runs where we make heavy use of the WebProcess cache. We should also consider doing this on iOS.

* Source/WebKit/WebProcess/WebProcess.cpp:
(WebKit::WebProcess::prepareToSuspend):

Canonical link: https://commits.webkit.org/261354@main




More information about the webkit-changes mailing list