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 unnecessarily.
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.
Jason