You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2013/04/15 09:24:15 UTC

[jira] [Commented] (DOSGI-169) RemoteServiceAdminCore missing synchronized block + deadlock

    [ https://issues.apache.org/jira/browse/DOSGI-169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13631549#comment-13631549 ] 

Christian Schneider commented on DOSGI-169:
-------------------------------------------

Hi Amichai,
somehow when I apply the patch it shows only one line changed. Can you redo the patch based on the current trunk?

                
> RemoteServiceAdminCore missing synchronized block + deadlock
> ------------------------------------------------------------
>
>                 Key: DOSGI-169
>                 URL: https://issues.apache.org/jira/browse/DOSGI-169
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.4.0, 1.5
>            Reporter: Amichai Rothman
>         Attachments: fix_exportedservices_sync_2.diff, fix_exportedservices_sync.diff
>
>
> In RemoteServiceAdminCore.removeExportRegistrations() the exportedServices map is used in a HashMap copy constructor without being synchronized (this is easily visually mistaken for a single atomic operation, but is actually an iteration on the map - an in any case, should be synchronized for proper visibility). The copy constructor call should be placed in a syncrhonized block with exportedServices as the monitor, just like all other accesses to this map.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira