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

Method ReleaseMemory

library/cpp/coroutine/engine/stack/stack_storage.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void TStorage::ReleaseMemory([[maybe_unused]] char* alignedStackMemory, [[maybe_unused]] size_t pagesToKeep) noexcept {
39#if !defined(_san_enabled_) && defined(NDEBUG)
40 size_t numOfPagesToFree = StackSize_ / PageSize;
41 numOfPagesToFree -= pagesToKeep;
42 ReleaseRss(alignedStackMemory, numOfPagesToFree);
43#endif
44 }
45
46}

Callers

nothing calls this directly

Calls 1

ReleaseRssFunction · 0.85

Tested by

no test coverage detected