Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can still have ownership issues and leaks even with a GC, if an object is reachable from a root. e.g. object A is in a cache and it references object B which references objects C D E F G ... which will now never get collected.

If A owns B then that is as expected but if A merely references B then it should hold a WeakRef



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: