3 ms·
That's a GC-centric definition of "memory leak" that was invented to make garbage collection a tractable problem. Memory that is retained that will never be us
by TheCoelacanth 6y ago
That's a GC-centric definition of "memory leak" that was invented to make garbage collection a tractable problem.
Memory that is retained that will never be used regardless of input to the program is effectively a memory leak, regardless of whether you can get to it through some chain of references.
- whateveracct 6y agoBut like I said, in most Java-based use-cases, the memory allocated is free by the end of the function call/request.