Kernel: Unbreak the LOCK_DEBUG build

Regressed with 68bf6db673
This commit is contained in:
Andreas Kling 2021-08-30 02:47:40 +02:00
parent f727dc3c42
commit 5cd030568f
Notes: sideshowbarker 2024-07-18 05:05:52 +09:00

View file

@ -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);