1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:47:44 +00:00

Kernel: Fix losing PTEs

We can't use a HashMap with a small key that doesn't guarantee
collisions. Change it to a HashTable instead.

Fixes #3254
This commit is contained in:
Tom 2020-08-25 17:14:48 -06:00 committed by Andreas Kling
parent bcbe2fe525
commit dd83f6a266
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ private:
RangeAllocator m_identity_range_allocator;
RefPtr<PhysicalPage> m_directory_table;
RefPtr<PhysicalPage> m_directory_pages[4];
HashMap<unsigned, RefPtr<PhysicalPage>> m_physical_pages;
HashTable<RefPtr<PhysicalPage>> m_physical_pages;
};
}