mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
Fix some paging related bugs exposed by the spawn stress test.
- Process::exec() needs to restore the original paging scope when called on a non-current process. - Add missing InterruptDisabler guards around g_processes access. - Only flush the TLB when modifying the active page tables.
This commit is contained in:
@@ -67,7 +67,7 @@ bool Scheduler::pick_next()
|
||||
|
||||
if (process.state() == Process::Dead) {
|
||||
if (current != &process && !Process::from_pid(process.ppid()))
|
||||
Process::reap(process.pid());
|
||||
Process::reap(process);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user