>>>>> "r" == rickhg12hs <rickhg12hs@gmail.com> writes:
r> $ ruby -w -e 'Integer("8"*50);GC.start;puts "Uncollected Bignums: %d" %
r> ObjectSpace.each_object(Bignum) {|i| p i}'
r> 88888888888888888888888888888888888888888888888888
r> Uncollected Bignums: 1
r> Hmmmm. Why is the Bignum still here?
The GC is conservative : it has found, somewhere on the stack, a reference
to the Bignum. This is why it don't remove it.
--
Guy Decoux