commit | f726c129d08e15737229850cfe261ef51a66b22f | [log] [tgz] |
---|---|---|
author | Shintaro Kawamura <[email protected]> | Thu Mar 28 03:40:08 2024 |
committer | Charles Dick <[email protected]> | Thu Mar 28 03:40:08 2024 |
tree | 1fdacb28b69ee4caa3cde0005cfba73377c4bbd7 | |
parent | f29c8fdfad92ba238b3596634f7e992836fb380c [diff] |
cros: cache process's priority sent to resourced DBusSchedqosStateHandler caches the latest process priority in its internal map because base::Process::GetPriority() is a synchronous API. To prevent leak of cache, processes need to call `base::Process::InitializePriority()` and `base::Process::ForgetPriority()` explicitly. The browser process itself and processes launched by `content::ChildProcessLauncher` support the calls. The examples of processes not launched by `content::ChildProcessLauncher` are the second zygote process in sandbox and broker processes launched by `sandbox::policy::SandboxLinux::StartBrokerProcess()`. But they don't update their scheduler settings anyway. Bug: b:306246041 Change-Id: I2afe68fea1cbe981fced9520691a55a49d7e80a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5294979 Reviewed-by: Brian Geffon <[email protected]> Commit-Queue: Shin Kawamura <[email protected]> Reviewed-by: Gabriel Charette <[email protected]> Reviewed-by: Avi Drissman <[email protected]> Cr-Commit-Position: refs/heads/main@{#1279444}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.