[Zion] Move to a kernel slab allocator that will allow easier dealloc.
This commit is contained in:
parent
792e5155ba
commit
d71d543b2a
6 changed files with 141 additions and 109 deletions
|
|
@ -17,14 +17,12 @@ class KernelHeap {
|
|||
static void DumpDistribution();
|
||||
|
||||
private:
|
||||
uint64_t next_slab_addr_;
|
||||
uint64_t first_unsized_addr_;
|
||||
uint64_t next_addr_;
|
||||
uint64_t upper_bound_;
|
||||
|
||||
glcr::UniquePtr<SlabAllocator<8>> slab_8_;
|
||||
glcr::UniquePtr<SlabAllocator<16>> slab_16_;
|
||||
glcr::UniquePtr<SlabAllocator<32>> slab_32_;
|
||||
glcr::UniquePtr<SlabAllocator> slab_8_;
|
||||
glcr::UniquePtr<SlabAllocator> slab_16_;
|
||||
glcr::UniquePtr<SlabAllocator> slab_32_;
|
||||
|
||||
// Distribution collection for the purpose of investigating a slab allocator.
|
||||
// 0: 0-4B
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue