From 928929bbe185c03e2277d8265ea689fd61d48cf8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 22 Aug 2021 17:01:46 +0200 Subject: Kernel: VERIFY that nobody is holding lock in ~BlockerSet() By the time we end up destroying a BlockerSet, we don't need to take the internal spinlock. And nobody else should be holding it either. So replace the SpinlockLocker with a VERIFY(). --- Kernel/Thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Thread.h') diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 983fc83d4a..8bb7ed1d6e 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -398,7 +398,7 @@ public: virtual ~BlockerSet() { - SpinlockLocker lock(m_lock); + VERIFY(!m_lock.is_locked()); VERIFY(m_blockers.is_empty()); } -- cgit v1.2.3