cvs commit: src/lib/libc/stdlib malloc.c
jasone at freebsd.org
Sun Jan 15 22:36:44 PST 2006
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
> 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.
More information about the cvs-src