Add the ability to GC soft references
Please add the ability to collect all soft references, e.g., Runtime.cleanSoftReferences().
I am using caches, which implemented using soft references (java.lang.ref.SoftReference). All objects are in the cache, but the dirty ones are also hard-referenced. The SoftReference interface assures that they will not be GCd, and I can safely find them using the soft referenced cache.
In order to check code correctness, I want to simulate low-memory conditions, dropping all references to objects, which are not hard referenced as well. Adding such a method will help a lot.