commit | 87c505975dce20361b62c10f3b8c1b11c1335e5e | [log] [tgz] |
---|---|---|
author | Vlad Tsyrklevich <vtsyrklevich@chromium.org> | Mon Jan 07 21:22:32 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jan 07 21:22:32 2019 |
tree | 0cd78de79b9009fe7625c0bac843c5442bd3a713 | |
parent | f1c865468f7ba485248b63cccd4607514d809828 [diff] |
GWP-ASan: Use ring buffer to store free slots The current method for finding a free slot is to pick a random starting point in a bitmap and scan left or right. This has the disadvantage of being O(n) AND relying on a system entropy source which could potentially call into allocation methods while a lock is held. Instead, store free slots in a ring buffer. Bug: 896019, 917804 Change-Id: I514c6b5f65c4f29b61f90d0bf2c73b4d32211e99 Reviewed-on: https://chromium-review.googlesource.com/c/1395889 Reviewed-by: Vitaly Buka <vitalybuka@chromium.org> Commit-Queue: Vitaly Buka <vitalybuka@chromium.org> Cr-Commit-Position: refs/heads/master@{#620474}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .