mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 06:08:42 +03:00
fix illumos build
In 08a01d26dc
, the primitive layer
changed and the `large_os_page_size` static was replaced by the
`_mi_os_large_page_size` function. However, an `#elif`
predicated by `__sun` that referred to `large_os_page_size` was
missed in that change. This simply changes that reference to
the function.
Signed-off-by: Dan Cross <cross@oxidecomputer.com>
This commit is contained in:
parent
4e50d6714d
commit
08adcce016
1 changed files with 1 additions and 1 deletions
|
@ -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 = _mi_os_large_page_size();
|
||||
cmd.mha_cmd = MHA_MAPSIZE_VA;
|
||||
if (memcntl((caddr_t)p, size, MC_HAT_ADVISE, (caddr_t)&cmd, 0, 0) == 0) {
|
||||
*is_large = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue