浏览代码

Kernel: Unbreak the LOCK_DEBUG build

Regressed with 68bf6db673e3a0070b5c47d7ab997d82d31e1526
Andreas Kling 3 年之前
父节点
当前提交
5cd030568f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Kernel/Thread.cpp

+ 1 - 1
Kernel/Thread.cpp

@@ -495,7 +495,7 @@ void Thread::finalize()
     VERIFY(Thread::current() != this);
 
 #if LOCK_DEBUG
-    VERIFY(!m_lock.is_locked_by_current_thread());
+    VERIFY(!m_lock.is_locked_by_current_processor());
     if (lock_count() > 0) {
         dbgln("Thread {} leaking {} Locks!", *this, lock_count());
         SpinlockLocker list_lock(m_holding_locks_lock);