[Zion] Use a slab allocator for 64 byte and 128 byte allocs.
This has no effect on page usage for now (each uses a small amount of pages so has some overhead. However it does reduce the active allocations from 234 -> 146 (64B) 61 -> 51 (128B)
This commit is contained in:
parent
cc16210e90
commit
10d16e129f
2 changed files with 24 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ class KernelHeap {
|
|||
SlabAllocator slab_8_{8};
|
||||
SlabAllocator slab_16_{16};
|
||||
SlabAllocator slab_32_{32};
|
||||
SlabAllocator slab_64_{64};
|
||||
SlabAllocator slab_128_{128};
|
||||
|
||||
// Distribution collection for the purpose of investigating a slab allocator.
|
||||
// 0: 0-8B
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue