mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
Kernel: Remove unused Process pointer in Memory::AddressSpace
Nobody was using the back-pointer to the process, so let's lose it.
This commit is contained in:
parent
2362ebf483
commit
15d033b486
Notes:
sideshowbarker
2024-07-18 07:18:02 +09:00
Author: https://github.com/awesomekling
Commit: 15d033b486
4 changed files with 8 additions and 10 deletions
|
@ -18,7 +18,7 @@ namespace Kernel::Memory {
|
|||
|
||||
class AddressSpace {
|
||||
public:
|
||||
static OwnPtr<AddressSpace> try_create(Process&, AddressSpace const* parent);
|
||||
static OwnPtr<AddressSpace> try_create(AddressSpace const* parent);
|
||||
~AddressSpace();
|
||||
|
||||
PageDirectory& page_directory() { return *m_page_directory; }
|
||||
|
@ -66,9 +66,8 @@ public:
|
|||
size_t amount_purgeable_nonvolatile() const;
|
||||
|
||||
private:
|
||||
AddressSpace(Process&, NonnullRefPtr<PageDirectory>);
|
||||
explicit AddressSpace(NonnullRefPtr<PageDirectory>);
|
||||
|
||||
Process* m_process { nullptr };
|
||||
mutable RecursiveSpinLock m_lock;
|
||||
|
||||
RefPtr<PageDirectory> m_page_directory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue