News for hackers. Stuff that matters.
Re:JDK-4513622: keeping a substring of a field prevents GC f... by dfkf on Sunday March 08, 2015 @02:03PM (#9166441)
It is one of those cases where you can actually leak memory with a GC. But at least Java gives (gave?) you a choice: to create a new string a use the current one, in .NET substring always returns a new string.

There are no comments on this comment yet.