Date: Sat, 23 Dec 2006 00:18:51 +0000 (UTC) From: Jason Evans <jasone@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib malloc.c Message-ID: <200612230018.kBN0Ipr7059792@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612230018.kBN0Ipr7059792>