mem: update slab allocator

the slab allocator will now free slabs if they are not the first slab
for a given size and they are empty
This commit is contained in:
Michael Shaw 2023-04-20 19:22:07 -04:00
commit 794c328809
2 changed files with 26 additions and 6 deletions

View file

@ -11,6 +11,7 @@ struct slab {
size_t free; /* number of free objects */
uintptr_t *nextfree;
struct slab *next;
struct slab *prev;
};
struct kmap_entry {