Pārlūkot izejas kodu

changing the order of asserts in release

tarfeef101 6 gadi atpakaļ
vecāks
revīzija
61a3265453
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. 0 1
      kern/thread/synch.c

+ 0 - 1
kern/thread/synch.c

@@ -209,7 +209,6 @@ void lock_release(struct lock * lock)
   KASSERT(lock_do_i_hold(lock));
   
   spinlock_acquire(&(lock->spin));
-  KASSERT(curthread == lock->owner);
   lock->owner = NULL;
   wchan_wakeone(lock->wc);
   spinlock_release(&(lock->spin));