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

Function AcquireSmallBuffer

util/memory/tempbuf.cpp:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static inline TTempBuf::TImpl* AcquireSmallBuffer(size_t size) {
157#if defined(_asan_enabled_)
158 return new (size) TAllocedBuf();
159#else
160 Y_UNUSED(size);
161 return TempBufManager()->Acquire();
162#endif
163}
164
165void TPerThreadedBuf::Dispose() noexcept {
166 if (Manager_ == TempBufManager()) {

Callers 2

TTempBufMethod · 0.85
ConstructImplFunction · 0.85

Calls 3

Y_UNUSEDFunction · 0.85
TempBufManagerFunction · 0.85
AcquireMethod · 0.45

Tested by

no test coverage detected