heap: Resolve data race in addition to HashTable
During insertion the HashTable might need to expand. If that happens, a new backing store is allocated and all existing entries are moved over to the new store. Updating the backing store pointer can race with reading it during tracing. To resolve the race, the read in Trace and the write in RehashTo need to be atomic. Bug: 986235 Change-Id: I0d6d4350026144a1e1675313ec7b193fd58beaca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943141Reviewed-by:Ulan Degenbaev <ulan@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Reviewed-by:
Anton Bikineev <bikineev@chromium.org> Commit-Queue: Omer Katz <omerkatz@chromium.org> Cr-Commit-Position: refs/heads/master@{#720957}
Showing
Please register or sign in to comment