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

Method AllocatePageAligned

library/cpp/yt/memory/ref.cpp:345–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345TSharedMutableRef TSharedMutableRef::AllocatePageAligned(size_t size, TSharedMutableRefAllocateOptions options, TRefCountedTypeCookie tagCookie)
346{
347 auto holder = New<TPageAlignedAllocationHolder>(size, options, tagCookie);
348 auto ref = holder->GetRef();
349 return TSharedMutableRef(ref, std::move(holder));
350}
351
352TSharedMutableRef TSharedMutableRef::AllocateAligned(size_t size, size_t alignment, TSharedMutableRefAllocateOptions options, TRefCountedTypeCookie tagCookie)
353{

Callers

nothing calls this directly

Calls 3

TSharedMutableRefClass · 0.85
moveFunction · 0.50
GetRefMethod · 0.45

Tested by

no test coverage detected