Michal Suchanek wrote:
...
> So if I understand it correctly when I reach the 1G heap size about
> half of random numbers on stack appear to be possible object pointers,
> right?

It's not that bad: gc can ignore any pointer that points to a location 
outside of the heap data structures, or is not aligned on a heap entry 
boundary (entry size is fixed at sizeof(RVALUE)), or a location that is 
inside a heap but contains an empty (0) entry. IIUC, ruby's heap data 
structures will normally be much smaller than all the allocated memory 
for the process.

-- 
        vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407