January 27, 2006

Quick-and-Dirty caching fix for Java memory leaks

Anonymous Reader writes "While programs in the Java language are theoretically immune from memory leaks, there are situations in which objects are not garbage collected even though they are no longer part of the program's logical state. This article shows you how Soft references, like weak references, can help applications prevent object loitering by enlisting the aid of the garbage collector in making cache eviction decisions."

Link: ibm.com/developerworks

Category:

  • Java
Click Here!