• bcwhite's avatar
    Clear memory in a predictable and atomic manner when changing type. · bee49a23
    bcwhite authored
    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}
    bee49a23
persistent_memory_allocator.cc 39.9 KB