Showing posts with label soft-references. Show all posts
Showing posts with label soft-references. Show all posts

Wednesday, May 16, 2012

How are SoftReferences collected by JVMs in practice?


I have two separate caches running in a JVM (one controlled by a third party library) each using soft references. I would prefer for the JVM to clear out my controlled cache before the one controlled by the library. The SoftReference javadoc states: