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

Method validate

src/common/classes/alloc.cpp:1619–1627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1617 void putElement(MemBlock** to, MemBlock* block);
1618
1619 static void validate(MemBlock* block, unsigned length)
1620 {
1621 for (; block; block = block->next)
1622 {
1623 if (block->getSize() != length)
1624 corrupt("length trashed for block in slot");
1625 SemiDoubleLink::validate(block);
1626 }
1627 }
1628
1629 void decrUsage(MemMediumHunk* hunk, MemPool* pool);
1630

Callers

nothing calls this directly

Calls 3

corruptFunction · 0.85
validateFunction · 0.70
getSizeMethod · 0.45

Tested by

no test coverage detected