This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] gc fixes


>>>>> "Nathan" == Nathan Froyd <froydnj@codesourcery.com> writes:

Nathan> The patch below solves one of the major remaining problems:
Nathan> lto1 dies on the first GC.  The fix is to tell GTY that LTO
Nathan> language nodes chain with GENERIC_NEXT rather than TREE_CHAIN.

I'm curious to know how the collection failed here, and how this fix
fixed it.

AIUI, chain_next is just an optimization, though there is a problem
where the GC fails if chain_next forms a circular data structure.  Did
you run into this?

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]