heap: Resolve data races in LinkedHashSetNode with prev_ and next_
This is a followup to CL 2012030: https://chromium-review.googlesource.com/c/chromium/src/+/2012961 Loading whole keys atomically resulted in data races involving the fields prev_ and next_ (which were not accessed concurrently before). This CL takes the same approach as was used for ListHashSetNode (https://chromium-review.googlesource.com/c/chromium/src/+/1984308) and wraps prev_ and next_ with atomic writes. This CL already includes the optimizations added to ListHashSetNode in https://chromium-review.googlesource.com/c/chromium/src/+/1995175. Bug: 986235 Change-Id: I4ef881ce181af25e53ccb51169b199c3315c7132 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2012345Reviewed-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/master@{#739240}
Showing
Please register or sign in to comment