From owner-cvs-src@FreeBSD.ORG Sat Dec 23 00:18:51 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB34B16A492; Sat, 23 Dec 2006 00:18:51 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id A6E1213C457; Sat, 23 Dec 2006 00:18:51 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBN0Ip5C059793; Sat, 23 Dec 2006 00:18:51 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from jasone@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBN0Ipr7059792; Sat, 23 Dec 2006 00:18:51 GMT (envelope-from jasone) Message-Id: <200612230018.kBN0Ipr7059792@repoman.freebsd.org> From: Jason Evans Date: Sat, 23 Dec 2006 00:18:51 +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-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: Sat, 23 Dec 2006 00:18:51 -0000 jasone 2006-12-23 00:18:51 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.c Log: Implement chunk allocation/deallocation hysteresis by caching one spare chunk per arena, rather than immediately deallocating all unused chunks. This fixes a potential performance issue when allocating/deallocating an object of size (4kB..1MB] in a loop. Reported by: davidxu Revision Changes Path 1.138 +86 -51 src/lib/libc/stdlib/malloc.c