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

Function MoveSingleThreadFreeToGlobal

library/cpp/lfalloc/lf_allocX64.h:1211–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209}
1210
1211static void MoveSingleThreadFreeToGlobal(TThreadAllocInfo* pInfo) {
1212 for (int sizeIdx = 0; sizeIdx < N_SIZES; ++sizeIdx) {
1213 int& freePtrIdx = pInfo->FreePtrIndex[sizeIdx];
1214 char** freePtrs = pInfo->FreePtrs[sizeIdx];
1215 PutBlocksToGlobalFreeList(sizeIdx, freePtrs + freePtrIdx, THREAD_BUF - freePtrIdx);
1216 freePtrIdx = THREAD_BUF;
1217 }
1218}
1219
1220#ifdef _win_
1221static bool IsDeadThread(TThreadAllocInfo* pInfo) {

Callers 3

CleanupAfterDeadThreadsFunction · 0.85
FreeThreadCacheFunction · 0.85
FlushThreadFreeListFunction · 0.85

Calls 1

Tested by

no test coverage detected