1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Bug 216996: Deadlock in CfgDiscoveredPathManager

This commit is contained in:
Oleg Krasilnikov 2008-02-21 12:11:01 +00:00
parent f211b6d512
commit d2488b2fb2

View file

@ -298,7 +298,8 @@ public class CConfigBasedDescriptor implements ICDescriptor {
}
public Element getProjectData(String id) throws CoreException {
synchronized(CProjectDescriptionManager.getInstance()){
// avoid deadlock by using different lock here.
synchronized(fStorageDataElMap /*CProjectDescriptionManager.getInstance()*/){
Element el = (Element)fStorageDataElMap.get(id);
if(el == null || el.getParentNode() == null){
InternalXmlStorageElement storageEl = (InternalXmlStorageElement)fCfgDes.getStorage(id, false);