Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SoftHashMap is a HashMap that uses soft references. Soft references will be nulled their targets garbage collected under some circumstances by JVMs as they seek memory.

Prior to uPortal 2.4.3 / 2.5.1 / 2.6.0, SoftHashMap usages in uPortal were not properly synchronized such that it was possible for concurrent modification to a SoftHashMap to leave the object in a bad state. Worst case resultant scenario included threads looping forever.