Jelajahi Sumber

Kernel: Remove incorrect VERIFY() in Thread::relock_process

Turns are there are legitimate cases where the thread state isn't
Thread::Running.
Gunnar Beutner 4 tahun lalu
induk
melakukan
3bac14e19e
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      Kernel/Thread.cpp

+ 0 - 2
Kernel/Thread.cpp

@@ -326,8 +326,6 @@ LockMode Thread::unlock_process_if_locked(u32& lock_count_to_restore)
 
 
 void Thread::relock_process(LockMode previous_locked, u32 lock_count_to_restore)
 void Thread::relock_process(LockMode previous_locked, u32 lock_count_to_restore)
 {
 {
-    VERIFY(state() == Thread::Running);
-
     // Clearing the critical section may trigger the context switch
     // Clearing the critical section may trigger the context switch
     // flagged by calling Scheduler::donate_to or Scheduler::yield
     // flagged by calling Scheduler::donate_to or Scheduler::yield
     // above. We have to do it this way because we intentionally
     // above. We have to do it this way because we intentionally