fix cache eviction of smaller segments

This commit is contained in:
daan 2019-07-14 12:52:58 -07:00
parent 42cf5e1580
commit e60a5db908
2 changed files with 19 additions and 6 deletions

View file

@ -116,7 +116,8 @@ int main() {
for (int i = 0; i < TRANSFERS; i++) {
free_items((void*)transfer[i]);
}
mi_collect(false);
mi_collect(false); // ensures abandoned segments are reclaimed
mi_collect(true); // frees everything
mi_stats_print(NULL);
return 0;
}