commit | ae90e940a4de64b861f0ba94b6e109fd7fe8c2bf | [log] [tgz] |
---|---|---|
author | Omer Katz <omerkatz@chromium.org> | Thu Oct 12 14:50:28 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 12 14:50:28 2023 |
tree | e55f1fa812f37f2aca9b3cace045e96be2d9f535 | |
parent | a063376335067b7c3ff76a5326ceb4dea55a4ecc [diff] |
heap: Prevent raw pointer to GCed as non-traceable in collections HeapVector and HeapHashMap support non-traceable types in some cases. Currently pointers to GCed are recognized as non-traceable and would be allowed by this collection. This CL adds static_asserts against raw pointers (which would be unsafe and may cause memory corruptions). The CL also fixes existing violations in blink. Bug: chromium:1476876 Change-Id: I3e8e28821f09be0c373b26971cdf88e44b27040c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4934210 Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Omer Katz <omerkatz@chromium.org> Cr-Commit-Position: refs/heads/main@{#1208842}
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.