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

Method deallocateBlock

src/common/classes/alloc.cpp:1689–1699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1687 }
1688
1689 bool deallocateBlock(FreeObjPtr blk)
1690 {
1691 size_t size = blk->getSize();
1692
1693 if (size > Limits::TOP_LIMIT)
1694 return false; // Not our block
1695
1696 unsigned slot = Limits::getSlot(size, SLOT_ALLOC);
1697 listBuilder.putElement(&freeObjects[slot], blk);
1698 return true;
1699 }
1700
1701#ifdef MEM_DEBUG
1702 void print_contents(FILE* file, MemPool* pool, bool used_only,

Callers 1

releaseBlockMethod · 0.80

Calls 2

getSizeMethod · 0.45
putElementMethod · 0.45

Tested by

no test coverage detected