mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +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:
parent
bcbe2fe525
commit
dd83f6a266
Notes:
sideshowbarker
2024-07-19 03:09:04 +09:00
Author: https://github.com/tomuta
Commit: dd83f6a266
Pull-request: https://github.com/SerenityOS/serenity/pull/3305
Issue: https://github.com/SerenityOS/serenity/issues/3254
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue