felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geert Schuring (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2289) Unsynchronized access to map of component instances may block the system
Date Fri, 16 Apr 2010 14:36:27 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857834#action_12857834

Geert Schuring commented on FELIX-2289:

How about using http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html

Wouldn't that solve the issue?

> 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.
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message