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

Method Done

library/cpp/lfalloc/lf_allocX64.h:1148–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146#endif
1147 }
1148 void Done() {
1149 for (auto sizeIdx : FreePtrIndex) {
1150 Y_ASSERT_NOBT(sizeIdx == THREAD_BUF);
1151 }
1152 for (auto& localCounter : LocalCounters) {
1153 localCounter.Flush();
1154 }
1155#if defined(LFALLOC_DBG)
1156 for (int tag = 0; tag < DBG_ALLOC_MAX_TAG; ++tag) {
1157 for (int sizeIdx = 0; sizeIdx < DBG_ALLOC_NUM_SIZES; ++sizeIdx) {
1158 auto& local = LocalPerTagAllocCounters[tag][sizeIdx];
1159 auto& global = GlobalPerTagAllocCounters[tag][sizeIdx];
1160 local.Flush(global);
1161 }
1162 }
1163#endif
1164#ifdef _win_
1165 if (hThread)
1166 CloseHandle(hThread);
1167#endif
1168 }
1169};
1170PERTHREAD TThreadAllocInfo* pThreadInfo;
1171static TThreadAllocInfo* pThreadInfoList;

Callers 15

CleanupAfterDeadThreadsFunction · 0.80
FreeThreadCacheFunction · 0.80
_InternalParseMethod · 0.80
_InternalParseMethod · 0.80
_InternalParseMethod · 0.80
_InternalParseMethod · 0.80
_InternalParseMethod · 0.80
_InternalParseMethod · 0.80
ParseMessageSetMethod · 0.80
_InternalParseMethod · 0.80
_InternalParseMethod · 0.80

Calls 1

FlushMethod · 0.45

Tested by

no test coverage detected