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

Issue 2367503002: Fix problem with persistent histograms getting ID of zero. (Closed)

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

Description

Fix problem with persistent histograms getting ID of zero. 1) Create persistent histogram records in an atomic manner so there are no half-filled entries left around should the process crash before it completes. 2) Validate the ID is non-zero before trying to access a histogram from persistent storage. BUG=649371 Committed: https://crrev.com/3027c932f1a8f52dfbc23b9a86ebfb1714aa8c87 Cr-Commit-Position: refs/heads/master@{#420654}

Patch Set 1 #

Patch Set 2 : fix signed/unsigned comparison #

Total comments: 2

Patch Set 3 : added comment about metadata check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -5 lines) Patch
M base/metrics/persistent_histogram_allocator.cc View 1 2 4 chunks +22 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
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/2367503002/1
4 years, 3 months ago (2016-09-22 16:27:02 UTC) #2
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 3 months ago (2016-09-22 16:27:09 UTC) #4
bcwhite
4 years, 3 months ago (2016-09-22 18:30:41 UTC) #14
Alexei Svitkine (slow)
LGTM % comment https://codereview.chromium.org/2367503002/diff/20001/base/metrics/persistent_histogram_allocator.cc File base/metrics/persistent_histogram_allocator.cc (right): https://codereview.chromium.org/2367503002/diff/20001/base/metrics/persistent_histogram_allocator.cc#newcode282 base/metrics/persistent_histogram_allocator.cc:282: histogram_data->samples_metadata.id == 0 || Can you ...
4 years, 3 months ago (2016-09-23 14:03:06 UTC) #15
bcwhite
https://codereview.chromium.org/2367503002/diff/20001/base/metrics/persistent_histogram_allocator.cc File base/metrics/persistent_histogram_allocator.cc (right): https://codereview.chromium.org/2367503002/diff/20001/base/metrics/persistent_histogram_allocator.cc#newcode282 base/metrics/persistent_histogram_allocator.cc:282: histogram_data->samples_metadata.id == 0 || On 2016/09/23 14:03:06, Alexei Svitkine ...
4 years, 3 months ago (2016-09-23 14:24:22 UTC) #16
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/2367503002/40001
4 years, 3 months ago (2016-09-23 14:24:38 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/263011)
4 years, 3 months ago (2016-09-23 14:49:21 UTC) #21
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/2367503002/40001
4 years, 3 months ago (2016-09-23 16:43:27 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-23 17:52:56 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 17:54:35 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3027c932f1a8f52dfbc23b9a86ebfb1714aa8c87
Cr-Commit-Position: refs/heads/master@{#420654}

Powered by Google App Engine
This is Rietveld 408576698