Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2006 22:36:39 -0800
From:      Jason Evans <jasone@freebsd.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdlib malloc.c
Message-ID:  <E6424089-1D5D-485A-AF3B-BFB963BB815F@freebsd.org>
In-Reply-To: <200601160513.k0G5DoAS058881@repoman.freebsd.org>
References:  <200601160513.k0G5DoAS058881@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E6424089-1D5D-485A-AF3B-BFB963BB815F>