Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2012 00:07:00 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Andre Oppermann <andre@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r242254 - head/sys/netinet
Message-ID:  <20121028200700.GL70741@FreeBSD.org>
In-Reply-To: <201210281807.q9SI7Yxa069395@svn.freebsd.org>
References:  <201210281807.q9SI7Yxa069395@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 28, 2012 at 06:07:34PM +0000, Andre Oppermann wrote:
A> @@ -296,8 +297,8 @@ syncache_destroy(void)
A>  		mtx_destroy(&sch->sch_mtx);
A>  	}
A>  
A> -	KASSERT(V_tcp_syncache.cache_count == 0, ("%s: cache_count %d not 0",
A> -	    __func__, V_tcp_syncache.cache_count));
A> +	KASSERT(uma_zone_get_cur(V_tcp_syncache.zone) == 0,
A> +	    ("%s: cache_count not 0", __func__));
A>  
A>  	/* Free the allocated global resources. */
A>  	uma_zdestroy(V_tcp_syncache.zone);

btw, keg_dtor() which is called in uma_zdestroy() printfs a warning
(even on non-invariant kernel) if keg had items in it. So leak won't
be unnoticed.


-- 
Totus tuus, Glebius.



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