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: Memory leaks?


> The leaks seem to be mostly from obstack allocations in make_node().
> My question is whether or not cc1plus deallocates everything upon exit 
> or leaves it there knowing that the kernel will do it anyway, because
> in the latter case the leaks reported by my memory watchdog tool are
> totally useless.

It is the latter. Things on the permanent obstack are never released.
I believe there is some obstack diagnosis in gcc itself.

Regards,
Martin

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