by flip101 · 11y ago · 0 comments
Garbage collection != memory leak proof
So let's say this 'terrible' javascript page allocates 2G of RAM. If you refresh the page and the memory stays allocated that is a memory leak. But if it frees it and then reallocates it then it is not a memory leak but just working as designed to (as is your example above).
Memory leaks are not properties of websites but properties (or rather hopefully not) of browsers indicating a bug in the browsers code, no website should be able to cause a browser to leak memory and if such websites can be found bugs should be logged against those browsers that can be reproducibly caused to lose track of their memory allocation.
It's not all that hard.