On Wed, May 25, 2011 at 1:11 PM, Robert Pankowecki
<robert.pankowecki / gmail.com> wrote:
> http://pastie.org/1970654
>
> Can anyone tell me why the object created with finializer is not garbage
> collected during GC.start executed in line 10 please ?

There are no guarantees - neither about when GC will occur nor about
which objects it will collect.  AFAIK Ruby MRI's GC doesn't even
bother to do something until your memory usage goes beyond a
particular point.  It's unlikely that you reach that point with your
test.

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/