mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
can run basic test
This commit is contained in:
parent
fe5a314114
commit
bd5f7de3f4
6 changed files with 62 additions and 17 deletions
|
@ -676,7 +676,7 @@ void _mi_arena_page_abandon(mi_page_t* page) {
|
|||
// leave as is; it will be reclaimed when an object is free'd in the page
|
||||
}
|
||||
_mi_page_unown(page);
|
||||
mi_stat_increase(_mi_stats_main.pages_abandoned, 1);
|
||||
_mi_stat_increase(&_mi_stats_main.pages_abandoned, 1);
|
||||
}
|
||||
|
||||
// called from `mi_free` if trying to unabandon an abandoned page
|
||||
|
@ -706,7 +706,7 @@ void _mi_arena_page_unabandon(mi_page_t* page) {
|
|||
// nothing to do
|
||||
// TODO: maintain count of these as well?
|
||||
}
|
||||
mi_stat_decrease(_mi_stats_main.pages_abandoned, 1);
|
||||
_mi_stat_decrease(&_mi_stats_main.pages_abandoned, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue