Skip to content

Commit 93b8597

Browse files
committed
Fix solaris build proposal.
close microsoftGH-802
1 parent 36ee5f9 commit 93b8597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prim/unix/prim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static void* unix_mmap(void* addr, size_t size, size_t try_alignment, int protec
310310
#elif defined(__sun)
311311
if (allow_large && _mi_os_use_large_page(size, try_alignment)) {
312312
struct memcntl_mha cmd = {0};
313-
cmd.mha_pagesize = large_os_page_size;
313+
cmd.mha_pagesize = 2*MI_MiB;
314314
cmd.mha_cmd = MHA_MAPSIZE_VA;
315315
if (memcntl((caddr_t)p, size, MC_HAT_ADVISE, (caddr_t)&cmd, 0, 0) == 0) {
316316
*is_large = true;

0 commit comments

Comments
 (0)