This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 3/4] Fix vector memory statistics.
On Mon, Nov 5, 2018 at 9:07 AM marxin <mliska@suse.cz> 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_from_map = false);
+ T * release_instance_overhead (void *ptr, size_t size,
+ bool remove_from_map = false);
can you document the return value?
Otherwise OK.
Richard.
> 2018-11-02 Martin Liska <mliska@suse.cz>
>
> * 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.
> (vec_prefix::release_overhead): Subtract elements.
> * vec.h (struct vec_prefix): Change signature.
> (va_heap::reserve): Pass proper 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(-)
>