svn commit: r282971 - in head/sys: kern sys

John Baldwin jhb at freebsd.org
Thu May 21 16:45:25 UTC 2015


On Wednesday, May 20, 2015 02:26:18 PM Xin Li wrote:
> I think we should also assert that no waiter remains when a conditional
> variable is destroyed (which also suggests that the memory may be freed
> shortly).  Otherwise we would either have modify after free or lost wakeups.

We already assert for this.  That is what the call to sleepq_lookup() is
checking for.  If there are any sleepers then there will be a sleepq
allocated for this cvp.

-- 
John Baldwin


More information about the svn-src-head mailing list