Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7586

[Sling Models] Memory Leak in cached adapters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Sling Models Impl 1.4.0, Sling Models Impl 1.4.2, Sling Models Impl 1.4.4, Sling Models Impl 1.4.6, Sling Models Impl 1.4.8
    • Fix Version/s: Sling Models Impl 1.4.10
    • Component/s: Extensions
    • Labels:
      None

      Description

      There is a potential memory leak in the adapterCache in ModelAdapterFactory when the model class references the adaptable. The solution is to wrap the model object in a WeakReference. That ensures that the model can be GC'd and then the key can be GC'd.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                klcodanr Dan Klco
                Reporter:
                justinedelson Justin Edelson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m