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

Method AllocateSlowCore

library/cpp/yt/memory/chunked_memory_allocator.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42TSharedMutableRef TChunkedMemoryAllocator::AllocateSlowCore(i64 size)
43{
44 if (size > MaxSmallBlockSize_) {
45 return TSharedMutableRef::Allocate(size, {.InitializeStorage = false}, TagCookie_);
46 }
47
48 Chunk_ = TSharedMutableRef::Allocate(ChunkSize_, {.InitializeStorage = false}, TagCookie_);
49 FreeZoneBegin_ = Chunk_.Begin();
50 FreeZoneEnd_ = Chunk_.End();
51
52 return TSharedMutableRef();
53}
54
55////////////////////////////////////////////////////////////////////////////////
56

Callers

nothing calls this directly

Calls 4

TSharedMutableRefClass · 0.85
AllocateFunction · 0.50
BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected