kmalloc(): re-implementation of memory leak tracking

This commit is contained in:
Balazs Gerofi
2016-08-19 11:52:00 +09:00
parent 3b60a95f13
commit b9439947a7
3 changed files with 264 additions and 16 deletions

View File

@ -2342,6 +2342,8 @@ static void idle(void)
}
if (v->status == CPU_STATUS_IDLE ||
v->status == CPU_STATUS_RESERVED) {
/* No work to do? Consolidate the kmalloc free list */
kmalloc_consolidate_free_list();
cpu_safe_halt();
}
else {