DescriptionFix a race in ThreadLocalStorage::StaticSlot::initialized which triggers a TSAN error.
Also fix a data race with ThreadData::status_. TSan doesn't see this race explicitly, but it contributes to a race with the use of StaticSlot in ThreadData::tls_index_.
BUG=268941
TESTED=Ran base_unittests.
TSAN errors before: lots, oodles, slathers, acres
After: Zip, zilch, nadda
Committed: https://crrev.com/42d16882080508876676ef164c1f7a863ca1fbf3
Cr-Commit-Position: refs/heads/master@{#339219}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Fix races with ThreadData::status_. #Patch Set 3 : Rebase #Patch Set 4 : Fix MSVC compile warning. #
Messages
Total messages: 27 (7 generated)
|