MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getExtent

Method getExtent

src/common/classes/alloc.cpp:2578–2586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2576
2577
2578void* MemPool::getExtent(size_t from, size_t& to) // pass desired minimum size, return actual extent size
2579{
2580#ifdef VALIDATE_POOL
2581 MutexLockGuard guard(mutex, "MemPool::getExtent");
2582#endif
2583 MemBlock* extent = allocateRange(from, to ALLOC_ARGS);
2584 extent->setExtent();
2585 return &extent->body;
2586}
2587
2588
2589void MemPool::releaseExtent(bool destroying, void* block, size_t size, MemPool* pool) noexcept

Callers 1

newExtentMethod · 0.80

Calls 1

setExtentMethod · 0.80

Tested by

no test coverage detected