[Zion] Use slab allocators immediately during heap init.
This commit is contained in:
parent
659f122c9e
commit
cc16210e90
4 changed files with 17 additions and 30 deletions
|
|
@ -23,9 +23,9 @@ class KernelHeap {
|
|||
|
||||
uint64_t alloc_count_ = 0;
|
||||
|
||||
glcr::UniquePtr<SlabAllocator> slab_8_;
|
||||
glcr::UniquePtr<SlabAllocator> slab_16_;
|
||||
glcr::UniquePtr<SlabAllocator> slab_32_;
|
||||
SlabAllocator slab_8_{8};
|
||||
SlabAllocator slab_16_{16};
|
||||
SlabAllocator slab_32_{32};
|
||||
|
||||
// Distribution collection for the purpose of investigating a slab allocator.
|
||||
// 0: 0-8B
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue