commit | 801dd26f61c9f9929d50912b89352c4dfd623d92 | [log] [tgz] |
---|---|---|
author | François Doray <fdoray@chromium.org> | Mon May 26 17:21:11 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon May 26 17:21:11 2025 |
tree | 321b864d649f54d01b8e912005432329d5b29496 | |
parent | de9ca04f5559ce49115962240b1fe7510ac1681d [diff] |
[blink] Add feature to prevent repetitive memory purge on freeze. Today, MemoryPurgeManager schedules a memory purge (which includes an expensive GC) every time a page is frozen in a background renderer. When pages are periodically unfrozen (see "InfiniteTabsFreezing" feature), this can result in repetitive purges, with low memory savings every time (since pages don't have the opportunity to allocate a lot of memory in the short unfreeze interval). This CL adds a feature to limit the number of memory purge on freezing to 1 per period in which the renderer is backgounded (state reset when renderer is foregrounded). Bug: 415799027 Change-Id: I276b685062fd8f2312853525790443713a3616a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6583136 Commit-Queue: Francois Pierre Doray <fdoray@chromium.org> Auto-Submit: Francois Pierre Doray <fdoray@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/main@{#1465597}
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.