mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
Kernel: Remove unnecessary weak pointer from Region to owning Process
This was previously used for a single debug logging statement during memory purging. There are no remaining users of this weak pointer, so let's get rid of it.
This commit is contained in:
parent
25a5fd870c
commit
4648bcd3d4
Notes:
sideshowbarker
2024-07-18 08:21:54 +09:00
Author: https://github.com/awesomekling
Commit: 4648bcd3d4
4 changed files with 10 additions and 21 deletions
|
@ -96,7 +96,7 @@ KResultOr<FlatPtr> Process::sys$fork(RegisterState& regs)
|
|||
ScopedSpinLock lock(space().get_lock());
|
||||
for (auto& region : space().regions()) {
|
||||
dbgln_if(FORK_DEBUG, "fork: cloning Region({}) '{}' @ {}", region, region->name(), region->vaddr());
|
||||
auto region_clone = region->clone(*child);
|
||||
auto region_clone = region->clone();
|
||||
if (!region_clone) {
|
||||
dbgln("fork: Cannot clone region, insufficient memory");
|
||||
// TODO: tear down new process?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue