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

Issue 1445283004: Use subtle::NoBarrier* statements for Histogram flags_ field. (Closed)

Created:
5 years, 1 month ago by Alexei Svitkine (slow)
Modified:
5 years, 1 month ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use subtle::NoBarrier* statements for Histogram flags_ field. This is similar to this CL which provided the same treatment to some of the other histogram internal fields: https://codereview.chromium.org/116983004 This field can be accessed from multiple threads which causes TSAN to report data races. Using NoBarrier instructions makes this intention explicit and silences the TSAN errors. Here's some context for the data race and why it's harmless: https://code.google.com/p/chromium/issues/detail?id=535359#c14 BUG=535359 Committed: https://crrev.com/a74e3d57c0c1feebb1f0bf28a4dfaea03b3734d2 Cr-Commit-Position: refs/heads/master@{#360723}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M base/metrics/histogram_base.h View 2 chunks +2 lines, -2 lines 0 comments Download
M base/metrics/histogram_base.cc View 2 chunks +5 lines, -3 lines 2 comments Download

Messages

Total messages: 18 (4 generated)
Alexei Svitkine (slow)
5 years, 1 month ago (2015-11-17 22:25:39 UTC) #2
Ilya Sherman
I'm not sure that we actually want to use NoBarrier -- is it prohibitively expensive ...
5 years, 1 month ago (2015-11-17 22:28:29 UTC) #3
Alexei Svitkine (slow)
Let's see what glider@ says - who works on TSAN and I've also asked to ...
5 years, 1 month ago (2015-11-17 22:34:14 UTC) #4
Alexander Potapenko
https://codereview.chromium.org/1445283004/diff/1/base/metrics/histogram_base.cc File base/metrics/histogram_base.cc (right): https://codereview.chromium.org/1445283004/diff/1/base/metrics/histogram_base.cc#newcode76 base/metrics/histogram_base.cc:76: subtle::NoBarrier_Store(&flags_, old_flags | flags); The question is whether there ...
5 years, 1 month ago (2015-11-18 11:23:28 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/1445283004/diff/1/base/metrics/histogram_base.cc File base/metrics/histogram_base.cc (right): https://codereview.chromium.org/1445283004/diff/1/base/metrics/histogram_base.cc#newcode76 base/metrics/histogram_base.cc:76: subtle::NoBarrier_Store(&flags_, old_flags | flags); On 2015/11/18 11:23:28, Alexander Potapenko ...
5 years, 1 month ago (2015-11-18 16:37:12 UTC) #6
Alexei Svitkine (slow)
friendly ping Alexander, WDYT given my explanation? Is this OK?
5 years, 1 month ago (2015-11-19 16:45:31 UTC) #7
Alexander Potapenko
On 2015/11/19 16:45:31, Alexei Svitkine (slow) wrote: > friendly ping > > Alexander, WDYT given ...
5 years, 1 month ago (2015-11-19 16:48:36 UTC) #8
Alexei Svitkine (slow)
isherman: friendly ping
5 years, 1 month ago (2015-11-19 22:09:02 UTC) #9
Ilya Sherman
On 2015/11/19 22:09:02, Alexei Svitkine (slow) wrote: > isherman: friendly ping LGTM given glider's approval. ...
5 years, 1 month ago (2015-11-19 23:06:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445283004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445283004/1
5 years, 1 month ago (2015-11-19 23:12:15 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ios_rel_device_ninja on ...
5 years, 1 month ago (2015-11-20 01:18:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1445283004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1445283004/1
5 years, 1 month ago (2015-11-20 02:11:31 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-11-20 02:38:04 UTC) #17
commit-bot: I haz the power
5 years, 1 month ago (2015-11-20 02:39:13 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/a74e3d57c0c1feebb1f0bf28a4dfaea03b3734d2
Cr-Commit-Position: refs/heads/master@{#360723}

Powered by Google App Engine
This is Rietveld 408576698