On Thu, May 8, 2014 at 7:21 AM, DJ Delorie <d...@redhat.com> wrote: > > Given this in tree.h: > > struct int_n_trees_t { > tree signed_type; > tree unsigned_type; > };
Mark with GTY(()) > extern struct int_n_trees_t int_n_trees[NUM_INT_N_ENTS]; Likewise. See how global_trees is marked for example. But likely you forgot to mark struct int_n_trees_t to be considered for GC. Richard. > And this in tree.c: > > struct int_n_trees_t int_n_trees [NUM_INT_N_ENTS]; > > What is the right way to mark these for garbage collection? > > I can't seem to get int_n_trees[] to show up in any of the gc-related > generated files. > > I need the int_n_trees[] trees to be locked into memory, but I see > signs that they're being reclaimed instead.