浏览代码

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().
Andreas Kling 3 年之前
父节点
当前提交
928929bbe1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Kernel/Thread.h

+ 1 - 1
Kernel/Thread.h

@@ -398,7 +398,7 @@ public:
 
 
         virtual ~BlockerSet()
         virtual ~BlockerSet()
         {
         {
-            SpinlockLocker lock(m_lock);
+            VERIFY(!m_lock.is_locked());
             VERIFY(m_blockers.is_empty());
             VERIFY(m_blockers.is_empty());
         }
         }