MCPcopy Create free account
hub / github.com/bytedance/InfiniStore / ~MemoryPool

Method ~MemoryPool

src/mempool.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46MemoryPool::~MemoryPool() {
47 if (mr_) {
48 ibv_dereg_mr(mr_);
49 }
50 if (pool_) {
51 free(pool_);
52 }
53}
54
55int MemoryPool::allocate(size_t size, size_t n, SimpleAllocationCallback callback) {
56 size_t required_blocks = (size + block_size_ - 1) / block_size_; // round up

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected