Re: Debugging dreams?
Re: Debugging dreams?
- Subject: Re: Debugging dreams?
- From: Jonathon Mah <email@hidden>
- Date: Thu, 8 Jun 2006 21:09:33 +0930
On 2006-06-08, at 21:02, Cem Karan wrote:
On a different note, I've come to realize how useful automatic
garbage collection could be for debugging; if you hook the debugger
and collector together, and force collection every time you step,
then if you attempt to follow a dead pointer, the garbage collector
will know if its pointing to anything that is live on the heap. If
its pointing to something on the stack, you already have enough
info to figure that one out... you could even query the collector
for what pointers are currently alive, even the ones that are
disconnected from anything.
Kinda off-topic, but assuming you're talking about "normal" garbage
collection, you can't get a dead pointer; if an object is still
referenced, it won't be collected.
Jonathon Mah
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden