浏览代码

Kernel: Don't call Thread::set_should_die() twice on every thread

This stops the "should already die" debug spam we've been seeing.
Andreas Kling 4 年之前
父节点
当前提交
8c694ed6eb
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      Kernel/Thread.cpp

+ 0 - 1
Kernel/Thread.cpp

@@ -246,7 +246,6 @@ void Thread::die_if_needed()
     [[maybe_unused]] auto rc = unlock_process_if_locked(unlock_count);
     [[maybe_unused]] auto rc = unlock_process_if_locked(unlock_count);
 
 
     ScopedCritical critical;
     ScopedCritical critical;
-    set_should_die();
 
 
     // Flag a context switch. Because we're in a critical section,
     // Flag a context switch. Because we're in a critical section,
     // Scheduler::yield will actually only mark a pending scontext switch
     // Scheduler::yield will actually only mark a pending scontext switch