GCC 3.3, GCC 3.4

Richard Henderson rth@redhat.com
Tue Feb 4 02:03:00 GMT 2003


On Mon, Feb 03, 2003 at 07:04:00PM +1100, Tim Josling wrote:
> 1. Allocating storage of similar sizes together, sacrificing locality.
> 2. Wasting space by rounding up allocations to the next power of 2, wasting
> space and increasing working set sizes.
> 3. Having bits of GC code all over the place impacting code locality and
> working set sizes.

Number 2 is already done.  We special case the few non-power-of-2
cases that actually get used.

As for the rest, I had a patch (before the pch merge) that changed
the allocator such that there were only two size buckets: larger
and smaller than 1 page.  I did get somewhat better peak memory
usage, but the compiler actually slowed down some more (!), which
is why I havn't pushed the code in.


r~



More information about the Gcc mailing list