cvs commit: src/lib/libc/stdlib malloc.c
Jason Evans
jasone at FreeBSD.org
Fri Dec 22 16:18:51 PST 2006
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
More information about the cvs-src
mailing list