• bcwhite's avatar
    Improved support for objects inside persistent memory. · 3f999d3d
    bcwhite authored
    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}
    3f999d3d
persistent_memory_allocator.h 32.2 KB