FELIX-3548
Concurrent access during startup

The INSTANCE_NAME is a static member wrongly protected against concurrent accesses. Another lock (global, shared by all factories) must be used to protect the list from concurrent modification. 

I've implemented a fix acquiring the lock on INSTANCE_NAME before each operation. The 'createComponentInstance' has a large part of is code synchronized too.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1354846 13f79535-47bb-0310-9956-ffa450edef68
1 file changed