1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

Optimize PageDirectory destruction.

Remove an extra hash lookup and only iterate over the actually-used
PhysicalPages that we need to clean up.
This commit is contained in:
Andreas Kling 2018-12-31 15:18:02 +01:00
parent edac1d6748
commit 3e37a1f5c3
2 changed files with 4 additions and 15 deletions

View file

@ -208,7 +208,6 @@ private:
void flush_tlb(LinearAddress);
RetainPtr<PhysicalPage> allocate_page_table(PageDirectory&, unsigned index);
void deallocate_page_table(PageDirectory&, unsigned index);
void map_protected(LinearAddress, size_t length);