aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/memory.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-05-21 15:03:04 +0200
committerDan Engelbrecht <[email protected]>2024-05-21 15:03:04 +0200
commit0c7894921e784b38357abe000baa6e03e183fb16 (patch)
tree8c9aef978eb7190c315d918a61b7bd6ca1ec385a /src/zencore/memory.cpp
parentrefactor BlockStore IterateChunks (#77) (diff)
downloadzen-de/memory-stomp-detector.tar.xz
zen-de/memory-stomp-detector.zip
Diffstat (limited to 'src/zencore/memory.cpp')
-rw-r--r--src/zencore/memory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zencore/memory.cpp b/src/zencore/memory.cpp
index 808c9fcb6..ead6dbe6d 100644
--- a/src/zencore/memory.cpp
+++ b/src/zencore/memory.cpp
@@ -26,8 +26,8 @@ AlignedAllocImpl(size_t Size, size_t Alignment)
// platforms return null if this requirement isn't met.
Size = (Size + Alignment - 1) & ~(Alignment - 1);
-#if ZEN_USE_MIMALLOC
- return mi_aligned_alloc(Alignment, Size);
+#if ZEN_USE_MIMALLOC || 1
+ return zen_new_aligned(Size, Alignment);
#elif ZEN_PLATFORM_WINDOWS
return _aligned_malloc(Size, Alignment);
#else
@@ -41,8 +41,8 @@ AlignedFreeImpl(void* ptr)
if (ptr == nullptr)
return;
-#if ZEN_USE_MIMALLOC
- return mi_free(ptr);
+#if ZEN_USE_MIMALLOC || 1
+ return zen_free(ptr);
#elif ZEN_PLATFORM_WINDOWS
_aligned_free(ptr);
#else