Class SoftReference<T>

  • Direct Known Subclasses:
    PatchedSoftReference

    public class SoftReference<T>
    extends SoftReference<T>
    The class is necessary to debug memory allocations via soft references. All IDEA classes should use this SoftReference instead of original from java.lang.ref. Whenever we suspect soft memory allocation overhead this easily becomes a hard reference so we can see allocations and memory consumption in memory profiler.
    Author:
    max
    • Constructor Detail

      • SoftReference

        public SoftReference​(T referent)
      • SoftReference

        public SoftReference​(T referent,
                             ReferenceQueue<? super T> q)