mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 20:08:41 +03:00
decommit returns whether re-commit is needed
This commit is contained in:
parent
449aad0635
commit
5c39fe7246
6 changed files with 94 additions and 98 deletions
|
@ -126,8 +126,14 @@ int _mi_prim_alloc(size_t size, size_t try_alignment, bool commit, bool allow_la
|
|||
// Commit/Reset/Protect
|
||||
//---------------------------------------------
|
||||
|
||||
int _mi_prim_commit(void* addr, size_t size, bool commit) {
|
||||
MI_UNUSED(addr); MI_UNUSED(size); MI_UNUSED(commit);
|
||||
int _mi_prim_commit(void* addr, size_t size) {
|
||||
MI_UNUSED(addr); MI_UNUSED(size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int _mi_prim_decommit(void* addr, size_t size, bool* decommitted) {
|
||||
MI_UNUSED(addr); MI_UNUSED(size);
|
||||
*decommitted = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue