Skip to content

Commit

Permalink
delete me
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Aug 23, 2024
1 parent 15fb6b7 commit 5db0de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5db0de2

Please sign in to comment.