3 ms·
HotSpot uses very different method for interfacing with native code, thus this problem is partially mitigated. However only small part of heap is directly refer
by dfox 16y ago
HotSpot uses very different method for interfacing with native code, thus this problem is partially mitigated. However only small part of heap is directly referenced by stack/registers so you can get away with simpler conservative implementation. Many Smalltalk and CL implementations scan stack and registers conservatively (for example SBCL and ST/X).
- ssp 16y agoHowever 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.