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

Issue 2578323002: Improved support for objects inside persistent memory. (Closed)

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

Description

Improved support for objects inside persistent memory. Some compilers, including MSVC, don't consider std::atomic as a POD- compatible type which makes it impossible to include them in persistent memory when using the object interface -- something which is obviously desireable. New "object" management embeds the type directly in the class/struct definition and runs the default constructor of the type after allocation, thus making the allocator compatible with a much greater range of types. BUG=546019 Review-Url: https://codereview.chromium.org/2578323002 Cr-Commit-Position: refs/heads/master@{#442884} Committed: https://chromium.googlesource.com/chromium/src/+/3f999d3d054de11816d1a97c887753b26013c853

Patch Set 1 #

Patch Set 2 : some clean-up and rebased #

Patch Set 3 : added comments and DeleteObject #

Patch Set 4 : rebased #

Total comments: 8

Patch Set 5 : addressed review comments by asvitkine #

Total comments: 6

Patch Set 6 : addressed review comments by asvitkine #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -147 lines) Patch
M base/debug/activity_tracker.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/feature_list.cc View 3 chunks +8 lines, -16 lines 0 comments Download
M base/metrics/field_trial.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 11 chunks +22 lines, -38 lines 0 comments Download
M base/metrics/persistent_histogram_allocator.h View 2 chunks +4 lines, -4 lines 0 comments Download
M base/metrics/persistent_histogram_allocator.cc View 1 2 3 4 5 9 chunks +25 lines, -30 lines 0 comments Download
M base/metrics/persistent_memory_allocator.h View 1 2 3 4 8 chunks +189 lines, -23 lines 0 comments Download
M base/metrics/persistent_memory_allocator.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/metrics/persistent_memory_allocator_unittest.cc View 1 2 7 chunks +32 lines, -16 lines 0 comments Download
M base/metrics/persistent_sample_map.cc View 1 6 chunks +9 lines, -15 lines 0 comments Download

Messages

Total messages: 61 (51 generated)
bcwhite
4 years ago (2016-12-16 19:37:05 UTC) #25
Alexei Svitkine (slow)
https://codereview.chromium.org/2578323002/diff/120001/base/metrics/persistent_memory_allocator.h File base/metrics/persistent_memory_allocator.h (right): https://codereview.chromium.org/2578323002/diff/120001/base/metrics/persistent_memory_allocator.h#newcode183 base/metrics/persistent_memory_allocator.h:183: // Helper function to convert a generic pointer back ...
3 years, 11 months ago (2017-01-06 16:29:34 UTC) #32
bcwhite
https://codereview.chromium.org/2578323002/diff/120001/base/metrics/persistent_memory_allocator.h File base/metrics/persistent_memory_allocator.h (right): https://codereview.chromium.org/2578323002/diff/120001/base/metrics/persistent_memory_allocator.h#newcode183 base/metrics/persistent_memory_allocator.h:183: // Helper function to convert a generic pointer back ...
3 years, 11 months ago (2017-01-06 17:27:07 UTC) #35
Alexei Svitkine (slow)
https://codereview.chromium.org/2578323002/diff/140001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2578323002/diff/140001/base/metrics/field_trial.cc#newcode1282 base/metrics/field_trial.cc:1282: entry->activated = trial_state.activated; Preserve the NoBarrier_Store() here? https://codereview.chromium.org/2578323002/diff/140001/base/metrics/field_trial.cc#newcode1316 base/metrics/field_trial.cc:1316: ...
3 years, 11 months ago (2017-01-10 18:01:04 UTC) #38
bcwhite
https://codereview.chromium.org/2578323002/diff/140001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2578323002/diff/140001/base/metrics/field_trial.cc#newcode1282 base/metrics/field_trial.cc:1282: entry->activated = trial_state.activated; On 2017/01/10 18:01:04, Alexei Svitkine (slow) ...
3 years, 11 months ago (2017-01-10 18:30:18 UTC) #43
Alexei Svitkine (slow)
lgtm
3 years, 11 months ago (2017-01-10 19:12:03 UTC) #44
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/2578323002/160001
3 years, 11 months ago (2017-01-11 01:54:35 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/97617)
3 years, 11 months ago (2017-01-11 03:30:51 UTC) #50
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/2578323002/180001
3 years, 11 months ago (2017-01-11 12:38:21 UTC) #58
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 12:42:50 UTC) #61
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/3f999d3d054de11816d1a97c8877...

Powered by Google App Engine
This is Rietveld 408576698