On 10/9/18 6:26 AM, Jonathan T. Looney wrote: > Author: jtl > Date: Tue Oct 9 13:26:06 2018 > New Revision: 339251 > URL: https://svnweb.freebsd.org/changeset/base/339251 > > Log: > There are three places where we return from a function which entered an > epoch section without exiting that epoch section. This is bad for two > reasons: the epoch section won't exit, and we will leave the epoch tracker > from the stack on the epoch list. > > Fix the epoch leak by making sure we exit epoch sections before returning.
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? -- John Baldwin _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"