Re: [PATCH 3/4] Fix vector memory statistics.

2018-11-05 Thread Richard Biener
On Mon, Nov 5, 2018 at 1:17 PM Martin Liška wrote: > > On 11/5/18 10:56 AM, Richard Biener wrote: > > On Mon, Nov 5, 2018 at 9:07 AM marxin wrote: > >> > >> > >> gcc/ChangeLog: > > > >/* Release PTR pointer of SIZE bytes. If REMOVE_FROM_MAP is set to true, > > remove the instance from r

Re: [PATCH 3/4] Fix vector memory statistics.

2018-11-05 Thread Martin Liška
arguments. >> (va_heap::release): Likewise. >> --- >> gcc/mem-stats.h | 14 -- >> gcc/vec.c | 34 +- >> gcc/vec.h | 12 >> 3 files changed, 37 insertions(+), 23 deletions(-) >&g

Re: [PATCH 3/4] Fix vector memory statistics.

2018-11-05 Thread Richard Biener
On Mon, Nov 5, 2018 at 9:07 AM marxin wrote: > > > gcc/ChangeLog: /* Release PTR pointer of SIZE bytes. If REMOVE_FROM_MAP is set to true, remove the instance from reverse map. */ - void release_instance_overhead (void *ptr, size_t size, - bool remove_fr

[PATCH 3/4] Fix vector memory statistics.

2018-11-05 Thread marxin
gcc/ChangeLog: 2018-11-02 Martin Liska * mem-stats.h (mem_alloc_description::release_instance_overhead): Return T *. * vec.c (struct vec_usage): Register m_element_size. (vec_prefix::register_overhead): New arguments: elements and element_size.