[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Debugging garbage collection

Austin Ziegler

9/14/2003 2:57:00 AM

On Sun, 14 Sep 2003 07:41:38 +0900, Nathan Weston wrote:
> I have a Ruby program that seems to be leaking memory -- in the sense
> that objects which I think should be GCed aren't getting GCed (even if I
> call GC.start).
> Something must be keeping references to these objects, but I can't figure
> out what.

I don't know that I can help you figure out "what" has references, but why
not use ObjectSpace to see what's alive at a particular point in time?

-austin
--
austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.09.13
* 22.56.45