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

[Sling Models] Memory Leak in cached adapters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Sling Models Impl 1.4.0, Models Impl 1.4.2, Models Impl 1.4.4, Models Impl 1.4.6, Models Impl 1.4.8
    • Models Impl 1.4.10
    • Extensions
    • 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

              klcodanr Dan Klco
              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