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

Issue 2871663003: Add concurrency check to HistogramSnapshotManager. (Closed)

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

Description

Add concurrency check to HistogramSnapshotManager. Using ThreadChecker causes problems when outside code is doing its own synchronization between multiple calling threads so remove that and add an atomic to do a run-time concurrency CHECK. This will likely be removed in the future once it's well assured that concurrent access is not the cause of the corrupted data structures. Also, make known_histograms_ member "const" as it should have been from the beginning. BUG=719448, 600717 Review-Url: https://codereview.chromium.org/2871663003 Cr-Commit-Position: refs/heads/master@{#470178} Committed: https://chromium.googlesource.com/chromium/src/+/947514553066c623a85712d05c3a01bd1bcbbffc

Patch Set 1 #

Total comments: 2

Patch Set 2 : disallow copy and assign #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -7 lines) Patch
M base/metrics/histogram_snapshot_manager.h View 3 chunks +10 lines, -6 lines 0 comments Download
M base/metrics/histogram_snapshot_manager.cc View 1 2 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 15 (10 generated)
bcwhite
3 years, 7 months ago (2017-05-08 18:48:05 UTC) #4
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2871663003/diff/1/base/metrics/histogram_snapshot_manager.cc File base/metrics/histogram_snapshot_manager.cc (right): https://codereview.chromium.org/2871663003/diff/1/base/metrics/histogram_snapshot_manager.cc#newcode30 base/metrics/histogram_snapshot_manager.cc:30: std::atomic<bool>* is_active_; Nit: DISALLOW_COPY_AND_ASSIGN()
3 years, 7 months ago (2017-05-08 18:51:09 UTC) #5
bcwhite
https://codereview.chromium.org/2871663003/diff/1/base/metrics/histogram_snapshot_manager.cc File base/metrics/histogram_snapshot_manager.cc (right): https://codereview.chromium.org/2871663003/diff/1/base/metrics/histogram_snapshot_manager.cc#newcode30 base/metrics/histogram_snapshot_manager.cc:30: std::atomic<bool>* is_active_; On 2017/05/08 18:51:09, Alexei Svitkine (slow) wrote: ...
3 years, 7 months ago (2017-05-08 20:06:50 UTC) #8
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/2871663003/20001
3 years, 7 months ago (2017-05-08 20:07:26 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 04:01:33 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/947514553066c623a85712d05c3a...

Powered by Google App Engine
This is Rietveld 408576698