Fix mimalloc/os.c compilation for mingw_x86 target (#3772)

This commit is contained in:
Mike Sinkovsky
2020-01-22 15:58:21 +05:00
committed by Nikolay Igotti
parent 1a4b999052
commit b1ca713940
+2
View File
@@ -233,6 +233,8 @@ static void* mi_win_virtual_allocx(void* addr, size_t size, size_t try_alignment
_mi_warning_message("unable to allocate huge (1GiB) page, trying large (2MiB) pages instead (error 0x%lx)\n", err);
}
}
#else
UNUSED(try_alignment);
#endif
#if (MI_INTPTR_SIZE >= 8)
// on 64-bit systems, try to use the virtual address area after 4TiB for 4MiB aligned allocations