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

If there is any memory leaks in a garbage-collected language, isn't it a bug of V8 instead?


You can just leak memory by leaving references to it around. Sometimes called memory abandonment.

With some systems you can pin it and forget to unpin it.


Very good explanation. I always wondered what is the equivalent of memory leak in a garbage collected language. Are there any tools for this?


Well, there’s the one in the article. Usually each GC implementation comes with its own tools.

You can watch process memory in general and see if keeps going up; if it does, it’s someone’s fault.


My question exactly.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: