[webkit-changes] [WebKit/WebKit] 2d526d: Make the ProcessAssertionCache more conservative
Chris Dumez
noreply at github.com
Mon Feb 5 21:39:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2d526d20ee469f6c8c491fd9676f340fbc096057
https://github.com/WebKit/WebKit/commit/2d526d20ee469f6c8c491fd9676f340fbc096057
Author: Chris Dumez <cdumez at apple.com>
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
More information about the webkit-changes
mailing list