This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH 7/7] Reduce memory waste due to non-power-of-2 allocs
- From: Jason Merrill <jason at redhat dot com>
- To: Dodji Seketeli <dodji at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, tromey at redhat dot com, gdr at integrable-solutions dot net, joseph at codesourcery dot com, burnus at net-b dot de, charlet at act-europe dot fr, paolo at gnu dot org
- Date: Mon, 12 Sep 2011 18:06:23 -0400
- Subject: Re: [PATCH 7/7] Reduce memory waste due to non-power-of-2 allocs
- References: <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
On 07/16/2011 10:37 AM, Dodji Seketeli wrote:
Ideally, I'd prefer some parts of this patch to be integrated into the
memory allocator. That is, I'd like to see the memory allocator have
an interface that returns the actual size of memory it has allocated.
This would help client code like this one to avoid requesting memory
This sounds good to me. Or, it would probably be simpler to just
provide a separate function for rounding up the allocated size using the
same code as the allocator.