Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169730923
D14896.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
465 B
Referenced Files
None
Subscribers
None
D14896.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14896: Assert td_locks > 0 in TD_LOCKS_DEC()
Attached
Detach File
Event Timeline
Log In to Comment