Forráskód Böngészése

changing the order of asserts in release

tarfeef101 6 éve
szülő
commit
61a3265453
1 módosított fájl, 0 hozzáadás és 1 törlés
  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));