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

Method Free

library/cpp/lfalloc/lf_allocX64.h:1074–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072 }
1073
1074 Y_FORCE_INLINE void Free(TPerTagAllocCounter& parent, size_t size) {
1075 Size -= size;
1076 --Count;
1077 if (++Updates > MAX_LOCAL_UPDATES) {
1078 Flush(parent);
1079 }
1080 }
1081
1082 Y_FORCE_INLINE void Flush(TPerTagAllocCounter& parent) {
1083 AtomicAdd(parent.Size, Size);

Callers

nothing calls this directly

Calls 1

FlushFunction · 0.50

Tested by

no test coverage detected