diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2024-01-08 23:50:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 23:50:56 (GMT) |
commit | 10d3f04aec745c6676ef31611549b970a78338b3 (patch) | |
tree | a5c25071a8e1cf637ec0bdce01e42102d7f051c2 /Objects | |
parent | ae968d10326165b1114568ab1ca0a7776ea9c234 (diff) | |
download | cpython-10d3f04aec745c6676ef31611549b970a78338b3.zip cpython-10d3f04aec745c6676ef31611549b970a78338b3.tar.gz cpython-10d3f04aec745c6676ef31611549b970a78338b3.tar.bz2 |
gh-112808: Fix mimalloc build on Solaris (#112809)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/mimalloc/prim/unix/prim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/mimalloc/prim/unix/prim.c b/Objects/mimalloc/prim/unix/prim.c index bf324e3..ec8447a 100644 --- a/Objects/mimalloc/prim/unix/prim.c +++ b/Objects/mimalloc/prim/unix/prim.c @@ -310,7 +310,7 @@ static void* unix_mmap(void* addr, size_t size, size_t try_alignment, int protec #elif defined(__sun) if (allow_large && _mi_os_use_large_page(size, try_alignment)) { struct memcntl_mha cmd = {0}; - cmd.mha_pagesize = large_os_page_size; + cmd.mha_pagesize = 2*MI_MiB; cmd.mha_cmd = MHA_MAPSIZE_VA; if (memcntl((caddr_t)p, size, MC_HAT_ADVISE, (caddr_t)&cmd, 0, 0) == 0) { *is_large = true; |