mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +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
Notes:
sideshowbarker
2024-07-19 00:12:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9ec9d20e847
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ int Process::sys$purge(int mode)
|
|||
{
|
||||
InterruptDisabler disabler;
|
||||
MM.for_each_vmobject([&](auto& vmobject) {
|
||||
vmobjects.append(vmobject);
|
||||
if (vmobject.is_anonymous())
|
||||
vmobjects.append(vmobject);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue