ServiceCache is prone to deadlocks
----------------------------------

                 Key: SLING-1728
                 URL: https://issues.apache.org/jira/browse/SLING-1728
             Project: Sling
          Issue Type: Bug
          Components: Scripting
    Affects Versions: Scripting Core 2.0.12
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: Scripting Core 2.0.12


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to