I would like to know what the count associated with the key :FREE
returned from ObjectSpace.count_object
. The documentation says this hash is implementation-specific, and so my question refers specifically to MRI ruby 2.1.
There have been at least two questions about this (here and here), but no answers regarding :FREE
.
Any ideas?
In some cases, the free count is much higher than the number of objects accessible through ObjectSpace.each_object
and thus I don't seem to have any information about them. Are they taking up memory. In my program the :FREE
count is high even after running garbage collection.