Class PMemArena

class PMemArena : public Arena

Public Functions

PMemArena(size_t min_block_size = 1ULL << 32, size_t size_limit = 0)
~PMemArena()
void *allocate(const size_t num_bytes)
void *allocateAndZero(const size_t num_bytes)
size_t bytesUsed() const
MemoryType getMemoryType() const

Private Members

size_t size_limit_
size_t size_
std::vector<std::pair<void *, size_t>> allocations_
struct memkind *pmem_kind_ = NULL