MCPcopy Create free account
hub / github.com/NetSys/bess / ~DmaMemoryPool

Method ~DmaMemoryPool

core/memory.cc:306–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306DmaMemoryPool::~DmaMemoryPool() {
307 for (auto *ptr : pages_) {
308 FreeHugepage(ptr);
309 }
310
311 if (!alloced_.empty()) {
312 LOG(WARNING) << "DmaMemoryPool " << this << " still has " << alloced_.size()
313 << " unfreed blocks!";
314 }
315}
316
317void *DmaMemoryPool::Alloc(size_t size) {
318 CHECK_GT(size, 0);

Callers

nothing calls this directly

Calls 3

FreeHugepageFunction · 0.85
emptyMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected