This is the mail archive of the gcc@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]

Re: excessive memory consumption


Jason writes:
> Found it!  In situations of recursive instantiation, there can be a lot of
> stuff compiled in the middle of compiling a given function, running up the
> label count.  save_for_inline_copying creates new labels for everything
> between min_labelno and max_labelno, which can add up to a *lot* of space.

Congratulations!  With your patch, that last case I posted takes about the
same virtual memory whether templates are used or not.  That is, about 30
meg instead of 490 meg.

If we still had a support contract, I'd say you could close the call. :-)


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