summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/ref.cpp
diff options
context:
space:
mode:
authorbabenko <[email protected]>2022-11-03 08:56:11 +0300
committerbabenko <[email protected]>2022-11-03 08:56:11 +0300
commit3910880160a4aaae4c26adeea4fe525e91856737 (patch)
treeb3c739692b49f1463cb62ddc7a0069b15fa0d516 /library/cpp/yt/memory/ref.cpp
parenta0d00502b1c5789adf896de18dd4c25b097a098d (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.cpp6
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()