[ https://issues.apache.org/jira/browse/SLING-1580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger closed SLING-1580. ------------------------------------ Closes issue after bundle release. > SlingServletResolver registers OSGi services from synchronized blocks > --------------------------------------------------------------------- > > Key: SLING-1580 > URL: https://issues.apache.org/jira/browse/SLING-1580 > Project: Sling > Issue Type: Bug > Components: Servlets > Affects Versions: Servlets Resolver 2.0.8 > Reporter: Bertrand Delacretaz > Assignee: Carsten Ziegeler > Priority: Minor > Fix For: Servlets Resolver 2.1.0 > > > The synchronized bindServlet method calls createServlet which in turns calls > context.getBundleContext().registerService(...). > This means OSGi framework calls are done from a synchronized method, which > can lead to deadlocks. > I think we can synchronize much less, it's probably just the changes to the > servletsByReference and pendingServlets collections that need to be > synchronized. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.