[PATCH] Allocate all target globals using GC for SWITCHABLE_TARGETs

Richard Henderson rth@redhat.com
Thu Jan 9 16:42:00 GMT 2014

On 01/09/2014 08:35 AM, Jakub Jelinek wrote:
> That would be fine for 1), but would mean 2).  It is also fine to GC
> allocate each structure individually, but some (like bb_reorder) are say
> just 4 bytes long, so it might be overkill.

Hmm..  Perhaps define the whole structure as you do, but somewhere global
enough that ggc-page.c can see it, and add to the extra_order_size_table?
I don't know how much memory wastage there would be there, but I can't imagine
it's as much as 0.5MB.


More information about the Gcc-patches mailing list