From b4cd7036bea6c6440fbbcdaebe53c864c87a5646 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 28 May 2024 14:56:06 -0400 Subject: integrate jkmalloc/prep for readonly --- src/stdlib/aligned_alloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/stdlib/aligned_alloc.c') diff --git a/src/stdlib/aligned_alloc.c b/src/stdlib/aligned_alloc.c index 983cb7de..f699014b 100644 --- a/src/stdlib/aligned_alloc.c +++ b/src/stdlib/aligned_alloc.c @@ -1,12 +1,11 @@ #include #include "_stdlib.h" +#include "_jkmalloc.h" void *aligned_alloc(size_t alignment, size_t size) { SIGNAL_SAFE(0); - /* all allocations are page aligned */ - (void)alignment; - return malloc(size); + return __jkmalloc(NULL, NULL, 0, NULL, alignment, size, 0); } /* -- cgit v1.2.1