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

Function SampleDeallocation

library/cpp/lfalloc/lf_allocX64.h:1414–1422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412}
1413
1414static inline void SampleDeallocation(TAllocHeader* p, int sizeIdx) {
1415 if (p->Cookie != DBG_ALLOC_INVALID_COOKIE && !InAllocationCallback) {
1416 if (DeallocationCallback) {
1417 InAllocationCallback = true;
1418 DeallocationCallback(p->Cookie, p->Tag, p->Size, sizeIdx);
1419 InAllocationCallback = false;
1420 }
1421 }
1422}
1423
1424static inline void TrackPerTagAllocation(TAllocHeader* p, int sizeIdx) {
1425 if (p->Tag < DBG_ALLOC_MAX_TAG && p->Tag >= 0) {

Callers 1

TrackDeallocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected