https://github.com/python/cpython/commit/10d3f04aec745c6676ef31611549b970a78338b3
commit: 10d3f04aec745c6676ef31611549b970a78338b3
branch: main
author: Jakub KulĂ­k <[email protected]>
committer: DinoV <[email protected]>
date: 2024-01-08T15:50:56-08:00
summary:

gh-112808: Fix mimalloc build on Solaris (#112809)

files:
M Objects/mimalloc/prim/unix/prim.c

diff --git a/Objects/mimalloc/prim/unix/prim.c 
b/Objects/mimalloc/prim/unix/prim.c
index bf324e3f626679..ec8447ab40d70c 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;

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to