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: [PATCH] Ensure entries pid_map are initialized to NULL


On Wed, Aug 5, 2009 at 17:52, Xinliang David Li<davidxl@google.com> wrote:

>> I've just noticed that we never free pid_map. ÂWhat would be a good
>> place to do that? ÂThis is not related to this change, so if you find
>> a good spot, it can be done in a separate patch.
>
> This is not uncommon for objects with global life time. Other examples
> include cgraph nodes, varpool nodes etc.

No.  These live in GC memory.  pid_map lives on the heap.  We leak
memory left-right-and-center, so I don't think it's critical.


Diego.


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