From owner-cvs-src@FreeBSD.ORG Tue Jul 29 22:42:56 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ADDB37B401; Tue, 29 Jul 2003 22:42:56 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9810843F3F; Tue, 29 Jul 2003 22:42:55 -0700 (PDT) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6U5gt0U002715; Tue, 29 Jul 2003 22:42:55 -0700 (PDT) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6U5gtw1002714; Tue, 29 Jul 2003 22:42:55 -0700 (PDT) Message-Id: <200307300542.h6U5gtw1002714@repoman.freebsd.org> From: Jeff Roberson Date: Tue, 29 Jul 2003 22:42:55 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/vm uma_core.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2003 05:42:56 -0000 jeff 2003/07/29 22:42:55 PDT FreeBSD src repository Modified files: sys/vm uma_core.c Log: - Check to see if we need a slab prior to allocating one. Failure to do so not only wastes memory but it can also cause a leak in zones that will be destroyed later. The problem is that the slab allocation code places newly created slabs on the partially allocated list because it assumes that the caller will actually allocate some memory from it. Failure to do so places an otherwise free slab on the partial slab list where we wont find it later in zone_drain(). Continuously prodded to fix by: phk (Thanks) Revision Changes Path 1.65 +2 -2 src/sys/vm/uma_core.c