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

Issue 1654053002: New test and off-by-one fix for data persisted to disk. (Closed)

Created:
4 years, 10 months ago by bcwhite
Modified:
4 years, 10 months 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

New test and off-by-one fix for data persisted to disk. Writing to disk via data()/used() creates a file of the minimum possible size which exposed an off-by-one bug in a corruption check. BUG= Committed: https://crrev.com/e56813551f0522f41883dd0c9c459d197835549b Cr-Commit-Position: refs/heads/master@{#374737}

Patch Set 1 #

Total comments: 4

Patch Set 2 : allow crash-test to run with dcheck enabled #

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

Messages

Total messages: 14 (3 generated)
bcwhite
4 years, 10 months ago (2016-02-01 13:53:48 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc File base/metrics/persistent_memory_allocator_unittest.cc (right): https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc#newcode448 base/metrics/persistent_memory_allocator_unittest.cc:448: #if !DCHECK_IS_ON() // DCHECK builds die at a various ...
4 years, 10 months ago (2016-02-08 21:43:26 UTC) #3
bcwhite
https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc File base/metrics/persistent_memory_allocator_unittest.cc (right): https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc#newcode448 base/metrics/persistent_memory_allocator_unittest.cc:448: #if !DCHECK_IS_ON() // DCHECK builds die at a various ...
4 years, 10 months ago (2016-02-10 16:28:58 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc File base/metrics/persistent_memory_allocator_unittest.cc (right): https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc#newcode448 base/metrics/persistent_memory_allocator_unittest.cc:448: #if !DCHECK_IS_ON() // DCHECK builds die at a various ...
4 years, 10 months ago (2016-02-10 16:35:34 UTC) #5
bcwhite
https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc File base/metrics/persistent_memory_allocator_unittest.cc (right): https://codereview.chromium.org/1654053002/diff/1/base/metrics/persistent_memory_allocator_unittest.cc#newcode448 base/metrics/persistent_memory_allocator_unittest.cc:448: #if !DCHECK_IS_ON() // DCHECK builds die at a various ...
4 years, 10 months ago (2016-02-10 16:54:10 UTC) #6
Alexei Svitkine (slow)
That SGTM - as a setter on the allocator. Maybe make it more targeted (i.e. ...
4 years, 10 months ago (2016-02-10 17:17:45 UTC) #7
bcwhite
> That SGTM - as a setter on the allocator. Maybe make it more targeted ...
4 years, 10 months ago (2016-02-10 18:18:33 UTC) #8
Alexei Svitkine (slow)
lgtm
4 years, 10 months ago (2016-02-10 18:29:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1654053002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1654053002/20001
4 years, 10 months ago (2016-02-10 20:04:04 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-10 21:56:47 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:31:24 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e56813551f0522f41883dd0c9c459d197835549b
Cr-Commit-Position: refs/heads/master@{#374737}

Powered by Google App Engine
This is Rietveld 408576698