diff options
| author | babenko <[email protected]> | 2022-11-03 08:56:11 +0300 |
|---|---|---|
| committer | babenko <[email protected]> | 2022-11-03 08:56:11 +0300 |
| commit | 3910880160a4aaae4c26adeea4fe525e91856737 (patch) | |
| tree | b3c739692b49f1463cb62ddc7a0069b15fa0d516 /library/cpp/yt/memory/ref.cpp | |
| parent | a0d00502b1c5789adf896de18dd4c25b097a098d (diff) | |
Introduce aligned_malloc; drop more YTAlloc dependencies
Diffstat (limited to 'library/cpp/yt/memory/ref.cpp')
| -rw-r--r-- | library/cpp/yt/memory/ref.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp index faa9e0613bb..aff7baedd3a 100644 --- a/library/cpp/yt/memory/ref.cpp +++ b/library/cpp/yt/memory/ref.cpp @@ -1,7 +1,7 @@ #include "ref.h" #include "blob.h" -#include <library/cpp/ytalloc/api/ytalloc.h> +#include <library/cpp/yt/malloc/malloc.h> #include <util/system/info.h> #include <util/system/align.h> @@ -140,14 +140,14 @@ class TPageAlignedAllocationHolder { public: TPageAlignedAllocationHolder(size_t size, TSharedMutableRefAllocateOptions options, TRefCountedTypeCookie cookie) - : Begin_(static_cast<char*>(NYTAlloc::AllocatePageAligned(size))) + : Begin_(static_cast<char*>(::aligned_malloc(size, GetPageSize()))) { Initialize(size, options, cookie); } ~TPageAlignedAllocationHolder() { - NYTAlloc::Free(Begin_); + ::free(Begin_); } char* GetBegin() |
