Page MenuHomeFreeBSD

D14896.diff
No OneTemporary

D14896.diff

Index: head/sys/sys/proc.h
===================================================================
--- head/sys/sys/proc.h
+++ head/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, 9:56 AM (12 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38095608
Default Alt Text
D14896.diff (465 B)

Event Timeline