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

Issue 2917523002: Revert of [TSAN] Fix TSAN error in i18n RTL. (Closed)

Created:
3 years, 6 months ago by mbjorge
Modified:
3 years, 6 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, jshin+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of [TSAN] Fix TSAN error in i18n RTL. (patchset #3 id:40001 of https://codereview.chromium.org/2877983004/ ) Reason for revert: Appears to break the Force UI Direction / Force Text Direction / FOrce RTL flags on mac. BUG=727229 Original issue's description: > [TSAN] Fix TSAN error in i18n RTL. > > Use an atomic to protect the global g_icu_text_direction cached value > from multiple readers/writers. > > Also reduce acccess to g_icu_text_diretion so it only has a single write > location (in SetICUDefaultLocal) and a single read location (ICUIsRTL), > to simplify the race-y-ness. > > Outside of test code, SetICUDefaultLocal is only used in two locations: > ppapi_plugin_main.cc and l10n_util.cc, whereas IsRTL is used in >100 > places outside of test code, so it seemed reasonable to move the heavy > logic (updating g_icu_text_direction when it changes) into what I imagine to be > a function that is called rarely and let the one that is used a lot > (IsRTL/ICUIsRTL) just do a simple read. > > This still still leaves a race condition in that IsRTL may give in > inaccurate result if SetICUDefaultLocale is executed at the same time. > In particular, IsRTL may return the value for the previously set default > locale after the default locale has been updated. > > BUG=695929 > TEST=cast_shell_browsertests under TSAN before/after > > Review-Url: https://codereview.chromium.org/2877983004 > Cr-Commit-Position: refs/heads/master@{#472890} > Committed: https://chromium.googlesource.com/chromium/src/+/89c24d4a46c1f0e7ad03891a659e6d23dc776c36 TBR=jshin@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=695929 Review-Url: https://codereview.chromium.org/2917523002 Cr-Commit-Position: refs/heads/master@{#477064} Committed: https://chromium.googlesource.com/chromium/src/+/27175dace3576a3e351348cf8272c20b0d3aceec

Patch Set 1 #

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

Messages

Total messages: 15 (6 generated)
mbjorge
Created Revert of [TSAN] Fix TSAN error in i18n RTL.
3 years, 6 months ago (2017-05-31 00:55:43 UTC) #1
mbjorge
I don't have a good mac setup to test with, but since I got rid ...
3 years, 6 months ago (2017-05-31 00:58:19 UTC) #2
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/2917523002/1
3 years, 6 months ago (2017-05-31 01:00:14 UTC) #4
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 6 months ago (2017-05-31 01:00:16 UTC) #6
mbjorge
ping, need a committer +1 on this despite TBR to run through CQ
3 years, 6 months ago (2017-05-31 16:57:02 UTC) #7
mbjorge
+some more base OWNERS for a +1
3 years, 6 months ago (2017-06-05 16:31:19 UTC) #9
dcheng
LGTM
3 years, 6 months ago (2017-06-05 18:24:40 UTC) #10
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/2917523002/1
3 years, 6 months ago (2017-06-05 18:31:57 UTC) #12
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 20:13:17 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/27175dace3576a3e351348cf8272...

Powered by Google App Engine
This is Rietveld 408576698