mirror of
https://github.com/RGBCube/serenity
synced 2025-06-22 15:52:11 +00:00
Kernel: Fix bad VMObject iteration in sys$purge()
We were fooling ourselves into thinking all VMObjects are anonymous and then tried to call purge() on them as if they were.
This commit is contained in:
parent
79328b2aba
commit
9ec9d20e84
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ int Process::sys$purge(int mode)
|
||||||
{
|
{
|
||||||
InterruptDisabler disabler;
|
InterruptDisabler disabler;
|
||||||
MM.for_each_vmobject([&](auto& vmobject) {
|
MM.for_each_vmobject([&](auto& vmobject) {
|
||||||
|
if (vmobject.is_anonymous())
|
||||||
vmobjects.append(vmobject);
|
vmobjects.append(vmobject);
|
||||||
return IterationDecision::Continue;
|
return IterationDecision::Continue;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue