mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Make PageDirectory store physical pages in a HashMap.
This container is really just there to keep a retain on the individual PhysicalPages for each page table. A HashMap does the job with far greater space efficiency.
This commit is contained in:
parent
193ead94f8
commit
edac1d6748
3 changed files with 23 additions and 16 deletions
|
@ -67,7 +67,7 @@ public:
|
|||
|
||||
private:
|
||||
RetainPtr<PhysicalPage> m_directory_page;
|
||||
RetainPtr<PhysicalPage> m_physical_pages[1024];
|
||||
HashMap<unsigned, RetainPtr<PhysicalPage>> m_physical_pages;
|
||||
};
|
||||
|
||||
class VMObject : public Retainable<VMObject> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue