felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jed Wesley-Smith (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FELIX-2332) Lots of contention on ExtensionManager.openConnection(URL)
Date Tue, 11 May 2010 05:27:30 GMT

     [ https://issues.apache.org/jira/browse/FELIX-2332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jed Wesley-Smith updated FELIX-2332:

    Attachment: ExtensionManager.java.patch

attached is a simple patch that reduces the scope of the sync block to the iteration.

> Lots of contention on ExtensionManager.openConnection(URL)
> ----------------------------------------------------------
>                 Key: FELIX-2332
>                 URL: https://issues.apache.org/jira/browse/FELIX-2332
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Jed Wesley-Smith
>         Attachments: ExtensionManager.java.patch
> This method is synchronized, apparently to protect is the iteration through the m_extensions
list. We have seen significant blocking in our applications as this lock encompasses the call
to URL.openConnection as well.
> As this list is rarely changed, a copy-on-write structure would be more appropriate,
but at the very least the, only holding the lock during the iteration would be far preferable.

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

View raw message