| commit | a78d834853e36f99ca32dcebe1c01f48a6e5e5f9 | [log] [tgz] |
|---|---|---|
| author | Anna Sato <annasato@google.com> | Wed May 07 09:27:49 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 07 09:27:49 2025 |
| tree | 337b5b3f3aff7cf806509037ea2d63af93c6599d | |
| parent | 683f7da0aedd45490841da0404c88d9d61c1f520 [diff] |
Add alias for debugging DomStorage batch tasks This CL adds `base::debug::Alias` for `batch_task_count` and `current_batch_size` within `RunBatchDatabaseTasks`. The goal is to ensure these values are available in crash dumps to help diagnose potential Out Of Memory errors (OOMs) related to large batch sizes or task counts, by preventing the compiler from optimizing these variables away. This approach is used as an alternative to crash keys, regarding potential thread-safety issues with setting crash keys from multiple threads. Bug: 40245293 Change-Id: I29343e0fe20d616501a5a5310d2fb715f302e9ca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6497083 Reviewed-by: Fergal Daly <fergal@chromium.org> Auto-Submit: Anna Sato <annasato@chromium.org> Reviewed-by: Mingyu Lei <leimy@chromium.org> Commit-Queue: Mingyu Lei <leimy@chromium.org> Cr-Commit-Position: refs/heads/main@{#1456826}
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.