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

ServiceCache is prone to deadlocks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Scripting Core 2.0.14
    • Scripting Core 2.0.14
    • Scripting
    • None

    Description

      The ServiceCache introduce with SLING-1478 is prone to deadlocks with the Framework.

      The serviceChanged method is called from the framework and tries to synchronize on the cache. The getService method on the other hand synchronizes on the cache and while holding the lock calls into the framework.

      The fix is to not hold a lock while calling into the framework.

      Attachments

        1. SLING-1728-v1.patch
          5 kB
          Felix Meschberger
        2. SLING-1728-v2.patch
          3 kB
          Felix Meschberger

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: