Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4681 from martin-frbg/fix4662-2
Browse files Browse the repository at this point in the history
fix HUGETLB allocation for TLS mode as well
  • Loading branch information
martin-frbg authored May 7, 2024
2 parents edeb525 + f0f1ff7 commit d66aa63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions driver/others/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){

Expand Down Expand Up @@ -1066,7 +1068,8 @@ static void *alloc_hugetlb(void *address){
}
#endif

#endif



#ifdef ALLOC_HUGETLBFILE

Expand Down

0 comments on commit d66aa63

Please sign in to comment.