News for hackers. Stuff that matters.
Re:JVM Anatomy Quarks by xxs on Saturday February 01, 2020 @05:19AM (#22209768)
String.intern does remove references (it used not to and it was considered a major issue). Imagine parsing documents and keeping the words - it works well as long as the input is not malicious. Otherwise words would pile up with no one cleaning them, give it enough time/input to slow the application due to memory pressure, crashing with OOM.

There are no comments on this comment yet.