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

Method allocate

src/common/classes/alloc.cpp:2360–2372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2358
2359
2360void* MemPool::allocate(size_t size ALLOC_PARAMS)
2361{
2362#ifdef VALIDATE_POOL
2363 MutexLockGuard guard(mutex, "MemPool::allocate");
2364 Validator vld(this);
2365#endif
2366
2367 MemBlock* memory = allocateRange(0, size ALLOC_PASS_ARGS);
2368
2369 increment_usage(memory->getSize());
2370
2371 return &memory->body;
2372}
2373
2374
2375void MemPool::releaseMemory(void* object, bool flagExtent) noexcept

Callers 5

ensureCapacityMethod · 0.45
operator newFunction · 0.45
operator new[]Function · 0.45
testAllocatorFunction · 0.45
testAllocatorMemoryPoolFunction · 0.45

Calls 1

getSizeMethod · 0.45

Tested by 1

testAllocatorFunction · 0.36