Laurynas Biveinis wrote: > Hi, > > Yet another question: there are several root lists: gt_ggc_rtab, > gt_ggc_deletable_rtab, gt_pch_cache_rtab, gt_pch_scalar_rtb. Now what > is what? I see that gt_ggc_rtab is an "ordinary" list. The deletable > one seems to have things that can be always collected?
Yes. > The names of > the last two ones suggest that they are more of a PCH interest and > disregarded as such by GGC? So I should be able to register only the > roots in the gt_ggc_rtab? (I suspect that no...) you will also have to mark the stringpool, and probably process the cache rtabs like ggc_mark_roots does, though theoretically you should be able to get away with not processing the cache rtabs.