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:
parent
d7ed4bd777
commit
794c328809
2 changed files with 26 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue