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:
parent
f211b6d512
commit
d2488b2fb2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue