Page MenuHomeFreeBSD

D14896.id40882.diff
No OneTemporary

D14896.id40882.diff

Index: sys/sys/proc.h
===================================================================
--- sys/sys/proc.h
+++ sys/sys/proc.h
@@ -381,7 +381,10 @@
} while (0)
#define TD_LOCKS_INC(td) ((td)->td_locks++)
-#define TD_LOCKS_DEC(td) ((td)->td_locks--)
+#define TD_LOCKS_DEC(td) do { \
+ KASSERT((td)->td_locks > 0, ("thread %p owns no locks", (td))); \
+ (td)->td_locks--; \
+} while (0)
#else
#define THREAD_LOCKPTR_ASSERT(td, lock)

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 3, 1:42 AM (4 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38046314
Default Alt Text
D14896.id40882.diff (450 B)

Event Timeline