mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-01 01:04:37 +03:00
add MI_UNUSED for unix _mi_prim_reuse
This commit is contained in:
parent
d389819cc9
commit
2696627aaf
1 changed files with 1 additions and 0 deletions
|
@ -434,6 +434,7 @@ int _mi_prim_commit(void* start, size_t size, bool* is_zero) {
|
|||
}
|
||||
|
||||
int _mi_prim_reuse(void* start, size_t size) {
|
||||
MI_UNUSED(start); MI_UNUSED(size);
|
||||
#if defined(__APPLE__) && defined(MADV_FREE_REUSE)
|
||||
return unix_madvise(start, size, MADV_FREE_REUSE);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue