commit | 8e84daa8283a02e8bf3f3eb0ce7131da24f98338 | [log] [tgz] |
---|---|---|
author | mbjorge <mbjorge@chromium.org> | Thu Mar 02 09:07:45 2017 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 05:27:17 2020 +0900 |
tree | d97e98561e9381d909162dd4d28407fa17c845cc | |
parent | 427d43138dce64aa05eb2cb971436cfd6fbb35f8 [diff] |
[TSAN] Fix data race with base::i18n text direction. The global g_icu_text_direction could be read/written from any thread that called base::i18n::IsRTL resulting in a data race. Guard read/writes with a mutex. BUG=695929 TEST=base_unittests Review-Url: https://codereview.chromium.org/2716003002 Cr-Commit-Position: refs/heads/master@{#454108} CrOS-Libchrome-Original-Commit: d27e590ad6471e444e164597ee22a80c7801451d