From f0f1ff7820d81f6faac1ed7d7f77f8533a084ff7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 8 May 2024 00:40:36 +0200 Subject: [PATCH] fix HUGETLB allocation for TLS mode as well --- driver/others/memory.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index 94b2f1a6a..784a1f028 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -964,7 +964,9 @@ static void *alloc_shm(void *address){ return map_address; } -#if defined OS_LINUX || defined OS_AIX || defined __sun__ || defined OS_WINDOWS +#endif + +#if ((defined ALLOC_HUGETLB) && (defined OS_LINUX || defined OS_AIX || defined __sun__ || defined OS_WINDOWS)) static void alloc_hugetlb_free(struct alloc_t *alloc_info){ @@ -1066,7 +1068,8 @@ static void *alloc_hugetlb(void *address){ } #endif -#endif + + #ifdef ALLOC_HUGETLBFILE