mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
fix 1GB huge page flag on Linux
This commit is contained in:
parent
23c35f4aba
commit
6e360d34ee
1 changed files with 1 additions and 1 deletions
2
src/os.c
2
src/os.c
|
@ -353,7 +353,7 @@ static void* mi_unix_mmap(void* addr, size_t size, size_t try_alignment, int pro
|
|||
lflags |= MAP_HUGETLB;
|
||||
#endif
|
||||
#ifdef MAP_HUGE_1GB
|
||||
if ((size % (uintptr_t)1 << 20) == 0) {
|
||||
if ((size % ((uintptr_t)1 << 30)) == 0) {
|
||||
lflags |= MAP_HUGE_1GB;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue