From owner-cvs-all@FreeBSD.ORG Fri Dec 28 07:24:20 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B91616A417; Fri, 28 Dec 2007 07:24:20 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1747C13C468; Fri, 28 Dec 2007 07:24:20 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBS7OKkx001950; Fri, 28 Dec 2007 07:24:20 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from jasone@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBS7OKcF001948; Fri, 28 Dec 2007 07:24:20 GMT (envelope-from jasone) Message-Id: <200712280724.lBS7OKcF001948@repoman.freebsd.org> From: Jason Evans Date: Fri, 28 Dec 2007 07:24:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/stdlib malloc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 07:24:20 -0000 jasone 2007-12-28 07:24:20 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.c Log: Maintain two trees instead of one (old_chunks --> old_chunks_{ad,szad}) in order to support re-use of multi-chunk unused regions within the DSS for huge allocations. This generalization is important to correct function when mmap-based allocation is disabled. Avoid zeroing re-used memory in the DSS unless it really needs to be zeroed. Revision Changes Path 1.157 +183 -113 src/lib/libc/stdlib/malloc.c