[MTOS-dev] Memory Utilization Brainstorm
Timothy Appnel
tim at appnel.com
Sun Dec 30 14:32:20 PST 2007
On 12/29/07, Hirotaka Ogawa <hirotaka.ogawa at gmail.com> wrote:
> uum, actually, I think handling a circular structure itself is not so
> hard. We can handle them by employing weak references or
> Object::Destroyer as you described, or just encapsulating circular
> references into one field of the root/parent object and destroying
> such references in the destructor of the root object.
Perhaps you are misunderstanding what I was getting at.
I am (now) familiar with all of these approaches to dealing with
circular references. They are (relatively) easy to code, but difficult
to implement given how MT's code is structured and in maintaining
backwards compatibility.
As I mentioned in the message I just sent out, besides the template,
node, tokens circular reference that is most prevalent I suspect that
other, albeit slower, memory leaks exist between other MT::Objects
given how they cache each other. Sound possible?
<tim/>
--
Timothy Appnel
Appnel Solutions
http://appnel.com/
More information about the MTOS-dev
mailing list