Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Issue 2716003002: [TSAN] Fix data race with base::i18n text direction. (Closed)

Created:
3 years, 9 months ago by mbjorge
Modified:
3 years, 9 months ago
Reviewers:
jungshik at Google
CC:
chromium-reviews, jshin+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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} Committed: https://chromium.googlesource.com/chromium/src/+/d27e590ad6471e444e164597ee22a80c7801451d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M base/i18n/rtl.cc View 4 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
mbjorge
3 years, 9 months ago (2017-02-24 18:25:56 UTC) #2
jungshik at Google
LGTM Sorry for the delay.
3 years, 9 months ago (2017-03-01 22:42:27 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2716003002/1
3 years, 9 months ago (2017-03-01 22:58:57 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/d27e590ad6471e444e164597ee22a80c7801451d
3 years, 9 months ago (2017-03-02 00:08:26 UTC) #8
RE66
On 2017/03/02 00:08:26, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) as ...
3 years, 9 months ago (2017-03-02 04:24:49 UTC) #9
mbjorge
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2722413004/ by mbjorge@chromium.org. ...
3 years, 9 months ago (2017-03-02 17:35:51 UTC) #10
mbjorge
3 years, 9 months ago (2017-03-03 18:56:10 UTC) #11
Message was sent while issue was closed.
On 2017/03/02 at 17:35:51, mbjorge wrote:
> A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2722413004/ by mbjorge@chromium.org.
> 
> The reason for reverting is: IsRTL is called a lot and this caused serious
performance impact..

Just curious, RonEfrati@ do you have specific numbers to quantify the
performance impact?

Powered by Google App Engine
This is Rietveld 408576698