4 ms·
However only small part of heap is directly referenced by stack/registers But those few objects referenced directly may keep a lot of other stuff alive. It's n
by ssp 16y ago
However only small part of heap is directly referenced by stack/registers
But those few objects referenced directly may keep a lot of other stuff alive. It's not that uncommon to have left-over pointers on the stack that are no longer live, but still reference a large graph of objects.