Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2015 11:34:23 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        d@delphij.net
Cc:        Matthew Ahrens <matt@mahrens.org>, Alexander Kabaev <kabaev@gmail.com>, "src-committers@freebsd.org" <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r282971 - in head/sys: kern sys
Message-ID:  <3628414.bIFniENAoC@ralph.baldwin.cx>
In-Reply-To: <555CFBFA.5040707@delphij.net>
References:  <201505151350.t4FDocQT054144@svn.freebsd.org> <CAKUb7ivud%2BSEx9N3NPtWff7xSaKAprsFOVCpERdjZ8K-jHtZWA@mail.gmail.com> <555CFBFA.5040707@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3628414.bIFniENAoC>