[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Pools and errors

From: Greg Hudson <ghudson_at_mit.edu>
Date: 2000-09-17 18:27:54 CEST

So, we have a fancy error-handling framework which involves
potentially allocating a linked list as we crawl up the stack. At the
same time, we have a fancy memory management framework which involves
potentially creating sub-pools to do temporary allocations in and
destroying them when we finish our work.

I am concerned by the potential for conflict here. In many cases, you
may not have a pool available to you which will live as long as the
error has to live. In other cases, you may only have a pool available
which lasts much longer than the error has to live, which could lead
to memory leaks. And in general, you can't even identify these cases,
much less address them.

Has anyone thought about this issue?
Received on Sat Oct 21 14:36:08 2006

This is an archived mail posted to the Subversion Dev mailing list.