You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/04/22 09:37:50 UTC

[jira] Resolved: (FELIX-2289) Unsynchronized access to map of component instances may block the system

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

Felix Meschberger resolved FELIX-2289.
--------------------------------------

    Resolution: Fixed

Yes the commit fixes the issue. Wanted to keep it open until I get a confirmation (which I failed to follow up on).

So, this can be resolved fixed.

> Unsynchronized access to map of component instances may block the system
> ------------------------------------------------------------------------
>
>                 Key: FELIX-2289
>                 URL: https://issues.apache.org/jira/browse/FELIX-2289
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions:  scr-1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>            Priority: Critical
>             Fix For:  scr-1.4.2
>
>
> The ComponentFactoryImpl class manages all factory component instance in an internal IdentityHashMap. This map is synchronized thus all access in a multi-thread environment must be synchronized.
> Most access is synchronized. The problematic one not synchronized is when a new entry is added. Making this call unsynchronized causes the map to get corrupt and will lead to endless loops when reading it.

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