| Index: base/metrics/persistent_memory_allocator.h
|
| diff --git a/base/metrics/persistent_memory_allocator.h b/base/metrics/persistent_memory_allocator.h
|
| index 56edd2ca24e0131d633b7aea805bd80e3681cb66..a6036689464e5c5116a411c2014127931284469f 100644
|
| --- a/base/metrics/persistent_memory_allocator.h
|
| +++ b/base/metrics/persistent_memory_allocator.h
|
| @@ -354,6 +354,14 @@ class BASE_EXPORT LocalPersistentMemoryAllocator
|
| ~LocalPersistentMemoryAllocator() override;
|
|
|
| private:
|
| + // Allocates a block of local memory of the specified |size|, ensuring that
|
| + // the memory will not be physically allocated until accessed and will read
|
| + // as zero when that happens.
|
| + static void* AllocateLocalMemory(size_t size);
|
| +
|
| + // Deallocates a block of local |memory| of the specified |size|.
|
| + static void DeallocateLocalMemory(void* memory, size_t size);
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(LocalPersistentMemoryAllocator);
|
| };
|
|
|
|
|