mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:38:10 +00:00
Kernel: Store kernel memory regions in a RedBlackTree
We were already doing this for userspace memory regions (in the Memory::AddressSpace class), so let's do it for kernel regions as well. This gives a nice speed-up on test-js and probably basically everything else as well. :^)
This commit is contained in:
parent
6d9a1d3c93
commit
a23edd42b8
2 changed files with 10 additions and 9 deletions
|
@ -292,7 +292,8 @@ private:
|
|||
PhysicalPageEntry* m_physical_page_entries { nullptr };
|
||||
size_t m_physical_page_entries_count { 0 };
|
||||
|
||||
Region::ListInMemoryManager m_kernel_regions;
|
||||
RedBlackTree<FlatPtr, Region*> m_kernel_regions;
|
||||
|
||||
Vector<UsedMemoryRange> m_used_memory_ranges;
|
||||
Vector<PhysicalMemoryRange> m_physical_memory_ranges;
|
||||
Vector<ContiguousReservedMemoryRange> m_reserved_memory_ranges;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue