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

Issue 23602005: Use nobarrier atomics for lossy counters in base::HistogramSamples and base::SampleVector (Closed)

Created:
7 years, 3 months ago by Alexander Potapenko
Modified:
7 years, 3 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Ilya Sherman, asvitkine+watch_chromium.org, dvyukov, kcc2
Visibility:
Public.

Description

Use nobarrier atomics for platform-size lossy counters in base::HistogramSamples and base::SampleVector This should not affect the performance, but will make it explicit that the counter values are expected to be read and written atomically. This will also suppress the ThreadSanitizer v2 reports on these counters. BUG=46840 R=jar@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221168

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M base/metrics/histogram_base.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/metrics/histogram_samples.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M base/metrics/sample_vector.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
jar (doing other things)
I've looked at this for a long time... and discussed it... I don't think using ...
7 years, 3 months ago (2013-08-29 03:16:54 UTC) #1
Alexander Potapenko
+dvyukov
7 years, 3 months ago (2013-08-29 09:17:59 UTC) #2
Alexander Potapenko
On 2013/08/29 03:16:54, jar wrote: > I've looked at this for a long time... and ...
7 years, 3 months ago (2013-08-29 09:32:08 UTC) #3
Alexander Potapenko
Another good point from kcc: a lossy counter could be a performance problem itself, since ...
7 years, 3 months ago (2013-08-29 09:40:00 UTC) #4
Alexander Potapenko
Jim, I've changed the patch to touch only the platform-size counters (HistogramSamples::IncreaseRedundantCount() and SampleVector::Accumulate()) Here's ...
7 years, 3 months ago (2013-08-29 12:35:05 UTC) #5
jar (doing other things)
On 2013/08/29 12:35:05, glider (vacation till Aug 29) wrote: > Jim, I've changed the patch ...
7 years, 3 months ago (2013-08-30 03:17:36 UTC) #6
Alexander Potapenko
> Do you have insight into what this does on ARM etc.? The implementation of ...
7 years, 3 months ago (2013-08-30 08:24:06 UTC) #7
Alexander Potapenko
Ping. Jim, do you still have concerns about the possible performance impact of this change?
7 years, 3 months ago (2013-09-03 10:58:04 UTC) #8
jar (doing other things)
lgtm
7 years, 3 months ago (2013-09-04 00:45:57 UTC) #9
Alexander Potapenko
7 years, 3 months ago (2013-09-04 10:33:56 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 manually as r221168 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698