فهرست منبع

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);
 
     ScopedCritical critical;
-    set_should_die();
 
     // Flag a context switch. Because we're in a critical section,
     // Scheduler::yield will actually only mark a pending scontext switch