MCPcopy Create free account
hub / github.com/catboost/catboost / SetGlobalFree

Method SetGlobalFree

library/cpp/lfalloc/lf_allocX64.h:1713–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1711 }
1712 }
1713 void SetGlobalFree(char* ptr) {
1714 i64 nShift = ptr - Start;
1715 i64 nOffsetInStep = nShift & (N_CHUNK_SIZE - 1);
1716 while (nOffsetInStep + Size <= N_CHUNK_SIZE) {
1717 ++FreeCount;
1718 Entries[nOffsetInStep / Size] = 1;
1719 nOffsetInStep += Size;
1720 }
1721 }
1722};
1723
1724static void DumpMemoryBlockUtilizationLocked() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected