From owner-cvs-all@FreeBSD.ORG Mon Jan 16 06:36:44 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D17716A41F; Mon, 16 Jan 2006 06:36:44 +0000 (GMT) (envelope-from jasone@freebsd.org) Received: from lh.synack.net (lh.synack.net [204.152.188.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 441D343D46; Mon, 16 Jan 2006 06:36:44 +0000 (GMT) (envelope-from jasone@freebsd.org) Received: by lh.synack.net (Postfix, from userid 100) id 1F63A5E48EB; Sun, 15 Jan 2006 22:36:44 -0800 (PST) Received: from [192.168.168.203] (moscow-cuda-gen2-68-64-60-20.losaca.adelphia.net [68.64.60.20]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by lh.synack.net (Postfix) with ESMTP id 642805E484B; Sun, 15 Jan 2006 22:36:42 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <200601160513.k0G5DoAS058881@repoman.freebsd.org> References: <200601160513.k0G5DoAS058881@repoman.freebsd.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jason Evans Date: Sun, 15 Jan 2006 22:36:39 -0800 To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: Apple Mail (2.746.2) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on lh.synack.net X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Subject: Re: 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: Mon, 16 Jan 2006 06:36:44 -0000 On Jan 15, 2006, at 9:13 PM, Jason Evans wrote: > jasone 2006-01-16 05:13:49 UTC > > FreeBSD src repository > > Modified files: > lib/libc/stdlib malloc.c > Log: > [...] > > Allow chunks to be as small as the page size. This change allows us to reduce the chunk size to the point that allocations larger than half a page are always page-aligned. This isn't very useful for production, but it should help in debugging programs that assume large allocations are page-aligned. If a program runs okay with MALLOC_OPTIONS=kkkkkkkkkkkk, but not with the default chunk size, then it's a good indication that the application is making bad alignment assumptions for large-ish objects. This might be useful for narrowing down some of the X problems that have been reported for xorg on amd64. Jason