From owner-cvs-src@FreeBSD.ORG Fri Mar 17 09:00:29 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 285E916A400; Fri, 17 Mar 2006 09:00:29 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D015B43D45; Fri, 17 Mar 2006 09:00:28 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k2H90SJ6059901; Fri, 17 Mar 2006 09:00:28 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from jasone@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k2H90Siw059900; Fri, 17 Mar 2006 09:00:28 GMT (envelope-from jasone) Message-Id: <200603170900.k2H90Siw059900@repoman.freebsd.org> From: Jason Evans Date: Fri, 17 Mar 2006 09:00:28 +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.3 malloc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 17 Mar 2006 09:00:29 -0000 jasone 2006-03-17 09:00:28 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.3 malloc.c Log: Modify allocation policy, in order to avoid excessive fragmentation for allocation patterns that involve a relatively even mixture of many different size classes. Reduce the chunk size from 16 MB to 2 MB. Since chunks are now carved up using an address-ordered first best fit policy, VM map fragmentation is much less likely, which makes smaller chunks not as much of a risk. This reduces the virtual memory size of most applications. Remove redzones, since program buffer overruns are no longer as likely to corrupt malloc data structures. Remove the C MALLOC_OPTIONS flag, and add H and S. Revision Changes Path 1.67 +52 -50 src/lib/libc/stdlib/malloc.3 1.112 +1064 -2499 src/lib/libc/stdlib/malloc.c