Support delayed allocations from persistent memory

Desktop / Chromium - bcwhite [chromium.org] - 21 April 2017 13:19 EDT

This allows for an allocation to be defined by code that knows about persistent allocation but not be realized until more generic code actually needs the space.

In addition, delayed allocations can be split and shared such that once its needed in one place it will be available in all places, an all-or-nothing arrangement.

This is done in support of follow-up CL: https://codereview.chromium.org/2811713003/

BUG=705342

Review-Url: https://codereview.chromium.org/2806403002 Cr-Commit-Position: refs/heads/master@{#466374}

1166f8d Support delayed allocations from persistent memory.
base/metrics/persistent_memory_allocator.cc | 106 +++++++++++++++++++++
base/metrics/persistent_memory_allocator.h | 96 +++++++++++++++++++
.../persistent_memory_allocator_unittest.cc | 41 ++++++++
3 files changed, 243 insertions(+)

Upstream: git.chromium.org


  • Share