1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-30 07:42:06 +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:
Andreas Kling 2021-08-07 21:32:30 +02:00
parent 2362ebf483
commit 15d033b486
4 changed files with 8 additions and 10 deletions

View file

@ -275,7 +275,7 @@ Process::Process(const String& name, uid_t uid, gid_t gid, ProcessID ppid, bool
KResult Process::attach_resources(RefPtr<Thread>& first_thread, Process* fork_parent)
{
m_space = Memory::AddressSpace::try_create(*this, fork_parent ? &fork_parent->address_space() : nullptr);
m_space = Memory::AddressSpace::try_create(fork_parent ? &fork_parent->address_space() : nullptr);
if (!m_space)
return ENOMEM;