svn commit: r339251 - in head/sys: net netinet netinet6
Jonathan T. Looney
jtl at freebsd.org
Tue Oct 9 15:43:46 UTC 2018
On Tue, Oct 9, 2018 at 11:02 AM John Baldwin <jhb at freebsd.org> wrote:
> Do we have some sort of simple per-thread epoch counter similar to
> td->td_locks that we could assert on in userret() and in the ithread loop
> when ithreads go to sleep to help catch leaked locks?
>
Yes: td->td_epochnest.
There are already INVARIANTS checks in malloc (for M_WAITOK), userret(),
and _sleep(). I think that covers the cases you mentioned. However, I am
very much in favor of adding any additional checks which make sense.
Jonathan
More information about the svn-src-all
mailing list