1
Fork 0
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:
Andreas Kling 2018-12-31 15:10:12 +01:00
parent 193ead94f8
commit edac1d6748
3 changed files with 23 additions and 16 deletions

View file

@ -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> {