mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
Kernel: Refactor Region/PageDirectory ownership model.
Make PageDirectory retainable and have each Region co-own the PageDirectory they're mapped into. When unmapped, Region has no associated PageDirectory. This allows Region to automatically unmap itself when destroyed.
This commit is contained in:
parent
afccbe51a4
commit
2f2f28f212
5 changed files with 60 additions and 68 deletions
|
@ -273,7 +273,7 @@ private:
|
|||
|
||||
int alloc_fd();
|
||||
|
||||
OwnPtr<PageDirectory> m_page_directory;
|
||||
RetainPtr<PageDirectory> m_page_directory;
|
||||
|
||||
Process* m_prev { nullptr };
|
||||
Process* m_next { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue