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

Issue 2016013003: Properly create zero-initialized local memory. (Closed)

Created:
4 years, 7 months ago by bcwhite
Modified:
4 years, 6 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Properly create zero-initialized local memory. Previous code used memset() to zero the memory which forces the pages to be realized and always adds the complete size to the process's working set. BUG=612470 Committed: https://crrev.com/eda1a99787e55f9ea71687361e0dd3f54492e603 Cr-Commit-Position: refs/heads/master@{#397489}

Patch Set 1 #

Patch Set 2 : added support for Mac (and hopefully all Posix) #

Patch Set 3 : cleaned up error message #

Total comments: 4

Patch Set 4 : use DPCHECK instead of DCHECK to print system error messages (and rebased) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -2 lines) Patch
M base/metrics/persistent_memory_allocator.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M base/metrics/persistent_memory_allocator.cc View 1 2 3 2 chunks +41 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
bcwhite
4 years, 6 months ago (2016-05-27 11:55:00 UTC) #4
Ilya Sherman
LGTM % comments: https://codereview.chromium.org/2016013003/diff/80001/base/metrics/persistent_memory_allocator.cc File base/metrics/persistent_memory_allocator.cc (right): https://codereview.chromium.org/2016013003/diff/80001/base/metrics/persistent_memory_allocator.cc#newcode737 base/metrics/persistent_memory_allocator.cc:737: DCHECK(address) << ::GetLastError(); nit: Mebbe use ...
4 years, 6 months ago (2016-06-01 23:34:58 UTC) #5
bcwhite
https://codereview.chromium.org/2016013003/diff/80001/base/metrics/persistent_memory_allocator.cc File base/metrics/persistent_memory_allocator.cc (right): https://codereview.chromium.org/2016013003/diff/80001/base/metrics/persistent_memory_allocator.cc#newcode737 base/metrics/persistent_memory_allocator.cc:737: DCHECK(address) << ::GetLastError(); On 2016/06/01 23:34:58, Ilya Sherman wrote: ...
4 years, 6 months ago (2016-06-02 13:47:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2016013003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2016013003/120001
4 years, 6 months ago (2016-06-02 19:21:09 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 6 months ago (2016-06-02 19:27:32 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 19:29:04 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eda1a99787e55f9ea71687361e0dd3f54492e603
Cr-Commit-Position: refs/heads/master@{#397489}

Powered by Google App Engine
This is Rietveld 408576698