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

Method Alloc

library/cpp/lfalloc/lf_allocX64.h:1044–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042 TAtomic Count;
1043
1044 Y_FORCE_INLINE void Alloc(size_t size) {
1045 AtomicAdd(Size, size);
1046 AtomicAdd(Count, 1);
1047 }
1048
1049 Y_FORCE_INLINE void Free(size_t size) {
1050 AtomicSub(Size, size);

Callers

nothing calls this directly

Calls 1

AtomicAddFunction · 0.70

Tested by

no test coverage detected