This is the mail archive of the
mailing list for the GCC project.
Re: GC special object sizes
Dan Nicolaescu <email@example.com> writes:
> I have a small hack that prints the allocation overheads for the
> different bucket sizes when using -fmem-report. The *_under* stuff can
> be used to determine if any extra buckets need to be added to
> Is this useful? Should it be turned in a proper patch? If yes, it
> should probably not be compiled in by default. What switch should be
> used to control that? Any other suggestions?
Yes, I think this is useful. I would suggest that you look into the
GATHER_STATISTICS #define, which has not done anything useful for years
but could be made useful once again. Or, see if you can get the
statistics-gathering overhead down to the point that it can be a
runtime option (-fmem-stats=verbose or something like that).