Re: [PATCH 7/7] Reduce memory waste due to non-power-of-2 allocs

2011-09-18 Thread Laurynas Biveinis
2011/9/17 Dodji Seketeli : > OK, so the patch below extracts a public ggc_alloced_size_for_request > function from the different implementations of the ggc allocator's > interface, and lets new_linemap use that. > libcpp/ > >        * include/line-map.h (struct line_maps::alloced_size_for_request):

Re: [PATCH 7/7] Reduce memory waste due to non-power-of-2 allocs

2011-09-18 Thread Dodji Seketeli
Jason Merrill writes: > On 09/17/2011 07:08 AM, Dodji Seketeli wrote: >> OK, so the patch below extracts a public ggc_alloced_size_for_request >> function from the different implementations of the ggc allocator's >> interface, and lets new_linemap use that. > > Maybe "ggc_round_alloc_size"? OK,

Re: [PATCH 7/7] Reduce memory waste due to non-power-of-2 allocs

2011-09-17 Thread Jason Merrill
On 09/17/2011 07:08 AM, Dodji Seketeli wrote: OK, so the patch below extracts a public ggc_alloced_size_for_request function from the different implementations of the ggc allocator's interface, and lets new_linemap use that. Maybe "ggc_round_alloc_size"? OK with that change if nobody else has

Re: [PATCH 7/7] Reduce memory waste due to non-power-of-2 allocs

2011-09-17 Thread Dodji Seketeli
Jason Merrill writes: > 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. > >

Re: [PATCH 7/7] Reduce memory waste due to non-power-of-2 allocs

2011-09-12 Thread Jason Merrill
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 on