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

Method Allocate

library/cpp/yt/memory/ref.cpp:338–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336////////////////////////////////////////////////////////////////////////////////
337
338TSharedMutableRef TSharedMutableRef::Allocate(size_t size, TSharedMutableRefAllocateOptions options, TRefCountedTypeCookie tagCookie)
339{
340 auto holder = NewWithExtraSpace<TDefaultAllocationHolder>(size, size, options, tagCookie);
341 auto ref = holder->GetRef();
342 return TSharedMutableRef(ref, std::move(holder));
343}
344
345TSharedMutableRef TSharedMutableRef::AllocatePageAligned(size_t size, TSharedMutableRefAllocateOptions options, TRefCountedTypeCookie tagCookie)
346{

Callers 4

TIntrusivePtr<T> TryNewFunction · 0.45
AllocateRootNodeMethod · 0.45
AllocateNodeMethod · 0.45

Calls 3

TSharedMutableRefClass · 0.85
moveFunction · 0.50
GetRefMethod · 0.45

Tested by

no test coverage detected