mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:18:11 +00:00
Revert "Kernel: Make sure threads which don't do any syscalls are t..."
This reverts commit 3c3a1726df
.
We cannot blindly kill threads just because they're not executing in a
system call. Being blocked (including in a page fault) needs proper
unblocking and potentially kernel stack cleanup before we can mark a
thread as Dying.
Fixes #8691
This commit is contained in:
parent
552185066e
commit
fa8fe40266
3 changed files with 0 additions and 19 deletions
|
@ -217,13 +217,6 @@ bool Scheduler::pick_next()
|
|||
|
||||
ScopedSpinLock lock(g_scheduler_lock);
|
||||
|
||||
auto current_thread = Thread::current();
|
||||
if (current_thread->should_die() && current_thread->may_die_immediately()) {
|
||||
// Ordinarily the thread would die on syscall exit, however if the thread
|
||||
// doesn't perform any syscalls we still need to mark it for termination here.
|
||||
current_thread->set_state(Thread::Dying);
|
||||
}
|
||||
|
||||
if constexpr (SCHEDULER_RUNNABLE_DEBUG) {
|
||||
dump_thread_list();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue