From 5db0de28c9c2aa9fd0806cc1ba676ceebca9c83b Mon Sep 17 00:00:00 2001 From: Dengke Date: Fri, 23 Aug 2024 21:20:08 +0000 Subject: [PATCH] delete me --- source/allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/allocator.c b/source/allocator.c index 71f7a64b0..5475f3582 100644 --- a/source/allocator.c +++ b/source/allocator.c @@ -48,7 +48,7 @@ static void *s_aligned_malloc(struct aws_allocator *allocator, size_t size) { * We use PAGE_SIZE as the boundary because we are not aware of any allocations of * this size or greater that are not data buffers */ - const size_t alignment = sizeof(void *) * (size > (size_t)PAGE_SIZE ? 8 : 2); + const size_t alignment = 512; #if !defined(_WIN32) void *result = NULL; int err = posix_memalign(&result, alignment, size);