Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2d526d20ee469f6c8c491fd9676f340fbc096057
      
https://github.com/WebKit/WebKit/commit/2d526d20ee469f6c8c491fd9676f340fbc096057
  Author: Chris Dumez <[email protected]>
  Date:   2024-02-05 (Mon, 05 Feb 2024)

  Changed paths:
    M Source/WebKit/UIProcess/ProcessThrottler.cpp

  Log Message:
  -----------
  Make the ProcessAssertionCache more conservative
https://bugs.webkit.org/show_bug.cgi?id=268787

Reviewed by Ben Nham.

Make the ProcessAssertionCache more conservative:
1. Keep the assertions alive for 1 second instead of 3 seconds
2. Disable & clear the cache when ProcessThrottler::setAllowsActivities(false) 
gets called

* Source/WebKit/UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::ProcessAssertionCache::add):
(WebKit::ProcessThrottler::ProcessAssertionCache::setEnabled):
(WebKit::ProcessThrottler::setAllowsActivities):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to