Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use atomics to access g_partition_by_default_locked
This value is a debugging aid, to ensure that `g_partition_by_default` is not read before it is written. Since it is potentially written and read from different threads, it must be handled atomically, but because it is a debugging aid relaxed memory semantics are sufficient. Bug: 1495572 Change-Id: Ic1947871305115642493057eb218f6396ae4a7c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5006043 Reviewed-by: Brianna Goldstein <brgoldstein@google.com> Commit-Queue: Dustin Mitchell <djmitche@chromium.org> Reviewed-by: Matthew Denton <mpdenton@chromium.org> Cr-Commit-Position: refs/heads/main@{#1220928}
- Loading branch information