Browse Source

Merge pull request #4681 from martin-frbg/fix4662-2

fix HUGETLB allocation for TLS mode as well
tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
d66aa63478
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      driver/others/memory.c

+ 5
- 2
driver/others/memory.c View File

@@ -964,7 +964,9 @@ static void *alloc_shm(void *address){
return map_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){ static void alloc_hugetlb_free(struct alloc_t *alloc_info){


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


#endif




#ifdef ALLOC_HUGETLBFILE #ifdef ALLOC_HUGETLBFILE




Loading…
Cancel
Save