mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
Kernel: Remove pointless ref-counting from PhysicalRegion
These are not multiple-owner objects and have no use for ref-counting. Make them simple value types instead (not eternal heap-allocated.)
This commit is contained in:
parent
29d53cbee2
commit
b2cd9b2c88
4 changed files with 20 additions and 29 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <Kernel/SpinLock.h>
|
||||
#include <Kernel/VM/AllocationStrategy.h>
|
||||
#include <Kernel/VM/PhysicalPage.h>
|
||||
#include <Kernel/VM/PhysicalRegion.h>
|
||||
#include <Kernel/VM/Region.h>
|
||||
#include <Kernel/VM/VMObject.h>
|
||||
|
||||
|
@ -245,9 +246,9 @@ private:
|
|||
|
||||
SystemMemoryInfo m_system_memory_info;
|
||||
|
||||
NonnullRefPtrVector<PhysicalRegion> m_user_physical_regions;
|
||||
NonnullRefPtrVector<PhysicalRegion> m_super_physical_regions;
|
||||
RefPtr<PhysicalRegion> m_physical_pages_region;
|
||||
Vector<PhysicalRegion> m_user_physical_regions;
|
||||
Vector<PhysicalRegion> m_super_physical_regions;
|
||||
Optional<PhysicalRegion> m_physical_pages_region;
|
||||
PhysicalPageEntry* m_physical_page_entries { nullptr };
|
||||
size_t m_physical_page_entries_free { 0 };
|
||||
size_t m_physical_page_entries_count { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue