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

Issue 2709113003: Clear memory in a predictable and atomic manner when changing type. (Closed)

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

Description

Clear memory in a predictable and atomic manner when changing type. There may be existing pointers to the memory block that are being actively accessed while the zeroing of memory is taking place. While this change doesn't fix that, it does make it possible for those other threads to recognize that memory is changing under it and be able to react appropriately. Also, restore missing kTypeIdAny that was somehow lost. BUG=620813 Review-Url: https://codereview.chromium.org/2709113003 Cr-Commit-Position: refs/heads/master@{#456121} Committed: https://chromium.googlesource.com/chromium/src/+/bee49a23fbe4ce847798aa87dff47440b07c097b

Patch Set 1 #

Patch Set 2 : rebased #

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

Messages

Total messages: 24 (13 generated)
bcwhite
3 years, 10 months ago (2017-02-22 23:30:00 UTC) #4
Alexei Svitkine (slow)
Can you provide more context for why it's needed? The associated bug is just the ...
3 years, 9 months ago (2017-02-24 16:16:22 UTC) #7
bcwhite
On 2017/02/24 16:16:22, Alexei Svitkine (slow) wrote: > Can you provide more context for why ...
3 years, 9 months ago (2017-02-24 20:22:44 UTC) #9
bcwhite
On 2017/02/24 20:22:44, bcwhite wrote: > On 2017/02/24 16:16:22, Alexei Svitkine (slow) wrote: > > ...
3 years, 9 months ago (2017-03-06 16:03:58 UTC) #12
Alexei Svitkine (slow)
I don't see how this is helping anything. If the API is indeed unsafe, which ...
3 years, 9 months ago (2017-03-06 22:10:28 UTC) #15
bcwhite
On 2017/03/06 22:10:28, Alexei Svitkine (very slow) wrote: > I don't see how this is ...
3 years, 9 months ago (2017-03-06 23:03:10 UTC) #16
Alexei Svitkine (slow)
On 2017/03/06 23:03:10, bcwhite wrote: > On 2017/03/06 22:10:28, Alexei Svitkine (very slow) wrote: > ...
3 years, 9 months ago (2017-03-10 16:32:20 UTC) #17
Alexei Svitkine (slow)
On 2017/03/10 16:32:20, Alexei Svitkine (very slow) wrote: > On 2017/03/06 23:03:10, bcwhite wrote: > ...
3 years, 9 months ago (2017-03-10 17:41:54 UTC) #18
Alexei Svitkine (slow)
lgtm
3 years, 9 months ago (2017-03-10 17:42:01 UTC) #19
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/2709113003/20001
3 years, 9 months ago (2017-03-10 17:46:12 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 18:59:49 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bee49a23fbe4ce847798aa87dff4...

Powered by Google App Engine
This is Rietveld 408576698