Explorar o código

changing the order of asserts in release

tarfeef101 %!s(int64=6) %!d(string=hai) anos
pai
achega
61a3265453
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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));