mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Kernel: Make Region single-owner instead of ref-counted
This simplifies the ownership model and makes Region easier to reason about. Userspace Regions are now primarily kept by Process::m_regions. Kernel Regions are kept in various OwnPtr<Regions>'s. Regions now only ever get unmapped when they are destroyed.
This commit is contained in:
parent
7a7f6a24e9
commit
7f9a33dba1
9 changed files with 44 additions and 41 deletions
|
@ -327,8 +327,8 @@ private:
|
|||
u32 m_signal_mask { 0 };
|
||||
u32 m_kernel_stack_base { 0 };
|
||||
u32 m_kernel_stack_top { 0 };
|
||||
RefPtr<Region> m_userspace_stack_region;
|
||||
RefPtr<Region> m_kernel_stack_region;
|
||||
Region* m_userspace_stack_region { nullptr };
|
||||
OwnPtr<Region> m_kernel_stack_region;
|
||||
VirtualAddress m_thread_specific_data;
|
||||
SignalActionData m_signal_action_data[32];
|
||||
Blocker* m_blocker { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue