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

Method validate

src/common/classes/alloc.cpp:471–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469
470public:
471 void validate(MemPool* pool, size_t hdr, StatInt& vMap, StatInt& vUse) noexcept
472 {
473 if (length >= DEFAULT_ALLOCATION)
474 {
475 fb_assert(length == DEFAULT_ALLOCATION);
476 vMap += length;
477 }
478
479 UCHAR* m = ((UCHAR*) this) + hdr;
480 while (m < memory)
481 {
482 MemBlock* block = (MemBlock*)m;
483 block->validate(pool, vUse);
484 m += block->getSize();
485 }
486 }
487
488#ifdef MEM_DEBUG
489 void print_memory(UCHAR* m, FILE* file, MemPool* pool, bool used_only,

Callers

nothing calls this directly

Calls 2

validateMethod · 0.45
getSizeMethod · 0.45

Tested by

no test coverage detected