At 10:01 AM -0500 6/4/03, Garrett Goebel wrote:
From: Graham Barr [mailto:[EMAIL PROTECTED]

I may be missing something here. But within the resources of an object may be other PMCs. As those PMCs will not be referenced from anywhere else what is to stop the DoD run from freeing those before it freed the object ?

Putting my head out on the chopping block twice in one day...


Correct me where I'm wrong but I was under the impression the DoD doesn't
free anything... It consists of marking those resources reachable from the
predetermined roots as active. All not marked active are deemed dead men
walking and will after due process get their own green mile. Graph, destroy,
deallocate... three separate phases.

DOD combines finding the live objects and destroying the dead. Garbage Collection handles the memory reaping.


I'd not be at all averse to having the DOD's destroy calling phase build a tree and destroy from the top down, rather than just in arena existence order, so long as it was an optional thing we could flag. (I'm having destruction order issues at work at the moment, so I'm rather amenable to this--take advantage of me while you can! :)
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to