Hi,
In message "Re: [BUG] memory leak?"
on Thu, 10 Jan 2008 02:10:30 +0900, ara howard <ara.t.howard / gmail.com> writes:
|huh. interesting. so let me ask you this: how can i mark the birth
|and death of all created objects using an overridden Class#new ?
In general, tracking *all* objects is an evil idea, but if you really
want to do, you can use object_id in combination with finalizer to
lessen accidental capturing. See weakref.rb for example. The basic
idea is using object_id instead of direct reference.
matz.